summaryrefslogtreecommitdiff
path: root/addons/website_theme_install/models/theme_models.py
diff options
context:
space:
mode:
Diffstat (limited to 'addons/website_theme_install/models/theme_models.py')
-rw-r--r--addons/website_theme_install/models/theme_models.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/addons/website_theme_install/models/theme_models.py b/addons/website_theme_install/models/theme_models.py
index 965ead35d00..0c5da7e03f3 100644
--- a/addons/website_theme_install/models/theme_models.py
+++ b/addons/website_theme_install/models/theme_models.py
@@ -40,6 +40,14 @@ class ThemeView(models.Model):
# inherit_id not yet created, add to the queue
return False
+ if inherit and inherit.website_id != website:
+ website_specific_inherit = self.env['ir.ui.view'].with_context(active_test=False).search([
+ ('key', '=', inherit.key),
+ ('website_id', '=', website.id)
+ ], limit=1)
+ if website_specific_inherit:
+ inherit = website_specific_inherit
+
new_view = {
'type': self.type or 'qweb',
'name': self.name,