summaryrefslogtreecommitdiff
path: root/addons/theme_default/models/theme_default.py
diff options
context:
space:
mode:
authorqsm-odoo <qsm@odoo.com>2018-09-04 11:42:30 +0200
committerqsm-odoo <qsm@odoo.com>2018-09-04 17:43:45 +0200
commita0fed1c7195536108d422df2289f78ceb09838ca (patch)
treebf9066bec661028797bd7267dbb4e480c712a4d1 /addons/theme_default/models/theme_default.py
parentc4557580ef28be701b20646644f190a7949fd1bb (diff)
[REF] website_theme_install, *: add theme.utils utility methods
* theme_bootswatch, theme_default Allow to disable/enable a view from a xml_id whether the xml_id is linked to an ir.ui.view or a theme.ir.ui.view.
Diffstat (limited to 'addons/theme_default/models/theme_default.py')
-rw-r--r--addons/theme_default/models/theme_default.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/theme_default/models/theme_default.py b/addons/theme_default/models/theme_default.py
index a8444cbb326..bcf9853bd9e 100644
--- a/addons/theme_default/models/theme_default.py
+++ b/addons/theme_default/models/theme_default.py
@@ -4,4 +4,4 @@ class ThemeDefault(models.AbstractModel):
_inherit = 'theme.utils'
def _theme_default_post_copy(self, mod):
- self.env.ref('website_theme_install.customize_modal').write({'active': False});
+ self.disable_view('website_theme_install.customize_modal')