diff options
| author | Julien Mougenot <jum@odoo.com> | 2019-09-16 14:30:07 +0000 |
|---|---|---|
| committer | Julien Mougenot <jum@odoo.com> | 2019-09-16 14:30:07 +0000 |
| commit | 43d91c289a79a6b3f099596d8e8f1ffb835f3de6 (patch) | |
| tree | e1d358a8ba24a747d3d0e24ae92d0508f2ef8f02 /odoo/addons/base/wizard/base_document_layout_views.xml | |
| parent | d5111aec9f484f7ec32b1ff10d135d72b27c77c9 (diff) | |
[FIX] base: document layout reset colors button
Fixed the button allowing to reset to the logo colors in the
document layout configurator.
Before this commit, the custom_colors boolean asserting that
the colors used by the layout are different than the ones computed
from the logo and used to revert to those colors was in readonly
and couldn't be toggled.
Now, the boolean is editable and allows to revert the colors properly.
Task 2072557
closes odoo/odoo#36968
Signed-off-by: VincentSchippefilt <VincentSchippefilt@users.noreply.github.com>
Diffstat (limited to 'odoo/addons/base/wizard/base_document_layout_views.xml')
| -rw-r--r-- | odoo/addons/base/wizard/base_document_layout_views.xml | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/addons/base/wizard/base_document_layout_views.xml b/odoo/addons/base/wizard/base_document_layout_views.xml index 8cb49407f05..53f76eb34be 100644 --- a/odoo/addons/base/wizard/base_document_layout_views.xml +++ b/odoo/addons/base/wizard/base_document_layout_views.xml @@ -19,7 +19,7 @@ <div class="o_document_layout_colors"> <field name="primary_color" widget="color" class="mb-4" /> <field name="secondary_color" widget="color" class="mb-4" /> - <button class="btn btn-link" title="Reset to logo colors"> + <button class="btn btn-link" title="Reset to logo colors" attrs="{'invisible': [('custom_colors', '=', False)]}"> <label for="custom_colors" class="fa fa-refresh mb-4" string="" /> </button> </div> |
