summaryrefslogtreecommitdiff
path: root/setup
diff options
context:
space:
mode:
authorSamuel Degueldre <sad@odoo.com>2020-11-13 10:40:33 +0000
committerSamuel Degueldre <sad@odoo.com>2020-11-17 11:28:50 +0000
commitda8bb3238d55811658f40471b5d91b1ecad95ddc (patch)
treece8508eaf2e5c2ffe4776fc735d738ab4e493fe4 /setup
parent333a9124608ff655bd9ad5e63044a5cb7ef9c636 (diff)
[FIX] web_editor: fix shape transparency color preview handling
Previously, the transparency color for shapes was not taken into account when handling the preview state transitions of the background shape snippet option. This caused strange behaviours where the shape transparency color would always get reset when it was a class color, either when changing to a different shape (expected, all shape colors should get reset) or when changing any other shape setting like other shape colors or flipping the shape (not expected). On the other hand, if the transparency color was not a class color, it would always remain untouched, when changing other shapes settings (expected) but also when changing shape type (eg Origins 01 -> Blocks 02, unwanted). This commit fixes that by cloning the entire shape container during preview, and restoring it on preview-reset. task-2380815 closes odoo/odoo#61710 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'setup')
0 files changed, 0 insertions, 0 deletions