Files
odoo_source/addons/theme_bootswatch/models/theme_bootswatch.py
T
qsm-odoo 0b480f6b2c [FIX] website_theme_install, *: multi-website customization dialog
* theme_bootswatch, theme_default

Before this commit, the customization dialog for themes was not
multi-website. That means if a theme was installed on a website, the
customization dialog was enabled for all the websites.

Note: this commit uses the '_post_copy' system of theme installations
for the first time and it had to be adapted a little bit.
2018-08-31 16:00:10 +02:00

8 lines
236 B
Python

from odoo import models
class ThemeBootswatch(models.AbstractModel):
_inherit = 'theme.utils'
def _theme_bootswatch_post_copy(self, mod):
self.env.ref('website_theme_install.customize_modal').write({'active': False});