Skip to content
Snippets Groups Projects
user avatar
Arthur Detroux (ard) authored
Commit [1] introduced the shape system. This system was able to chain
shapes depending on the shape of the previous sibling element.

Unfortunately, if the shape selected on the sibling was the last shape
available, clicking on the toggle shape button would result in nothing
happening.

This commit fixes that by defaulting to the first shape if no possible
shapes are given by the sibling.

[1]: https://github.com/odoo/odoo/commit/b84e0af742c51b88b4c108ebec2d0c7fff4b7483



opw-3082292

closes odoo/odoo#108000

X-original-commit: 9bdd8fae
Signed-off-by: default avatarQuentin Smetz (qsm) <qsm@odoo.com>
Signed-off-by: default avatarArthur Detroux (ard) <ard@odoo.com>
e985f8ef
History
Name Last commit Last update