summaryrefslogtreecommitdiff
path: root/odoo/addons/base/wizard/base_document_layout.py
diff options
context:
space:
mode:
authorJulien Mougenot <jum@odoo.com>2019-09-16 14:30:07 +0000
committerJulien Mougenot <jum@odoo.com>2019-09-16 14:30:07 +0000
commit43d91c289a79a6b3f099596d8e8f1ffb835f3de6 (patch)
treee1d358a8ba24a747d3d0e24ae92d0508f2ef8f02 /odoo/addons/base/wizard/base_document_layout.py
parentd5111aec9f484f7ec32b1ff10d135d72b27c77c9 (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.py')
-rw-r--r--odoo/addons/base/wizard/base_document_layout.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/odoo/addons/base/wizard/base_document_layout.py b/odoo/addons/base/wizard/base_document_layout.py
index 00d6cbd7883..afbe91f3c8e 100644
--- a/odoo/addons/base/wizard/base_document_layout.py
+++ b/odoo/addons/base/wizard/base_document_layout.py
@@ -28,7 +28,7 @@ class BaseDocumentLayout(models.TransientModel):
primary_color = fields.Char(related='company_id.primary_color', readonly=False)
secondary_color = fields.Char(related='company_id.secondary_color', readonly=False)
- custom_colors = fields.Boolean(compute="_compute_custom_colors")
+ custom_colors = fields.Boolean(compute="_compute_custom_colors", readonly=False)
logo_primary_color = fields.Char(compute="_compute_logo_colors")
logo_secondary_color = fields.Char(compute="_compute_logo_colors")