diff options
| author | qsm-odoo <qsm@odoo.com> | 2019-12-27 10:23:12 +0000 |
|---|---|---|
| committer | qsm-odoo <qsm@odoo.com> | 2019-12-30 15:40:00 +0000 |
| commit | f17e5d33390e8bc9b0de6acb9a29840de117759a (patch) | |
| tree | 186a785ff746043950c4150c980b1234cee7004c /addons/website_mail | |
| parent | f61ea1c38cd5046e0c231448b1c45ff98f1a7655 (diff) | |
[FIX] web_editor: allow to change common BS3/BS4 colors used on snippets
Hardcode some existing colors (but make them hidden in the colorpicker)
so they can be removed from snippets when selecting another color.
Normally, the chosable colors do not contain them, which prevents them
to be removed. For example, normally, the 'alpha' and 'beta' color
(which are the same as primary and secondary) are displayed instead of
their duplicates... but not for all themes.
This commit was mainly about the addition of 'success', 'info',
'warning' and 'danger' colors to the list (as we do not give the
possibility to select them through the editor but they might still be
used by snippets or in old databases). This also solves a bug for
upcoming features in master.
This commit also makes the excluded sections of the colorpicker hidden
instead of removed for the same reason.
In preparation of task-2152191 and others.
closes odoo/odoo#42505
X-original-commit: 222f72386a8a0a28ff450bf8dfa6a1ac8fa48d8e
Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
Diffstat (limited to 'addons/website_mail')
0 files changed, 0 insertions, 0 deletions
