summaryrefslogtreecommitdiff
path: root/addons/website_theme_install/models/__init__.py
diff options
context:
space:
mode:
authorJeremy Kersten <jke@odoo.com>2018-08-12 23:17:24 +0200
committerJeremy Kersten <jke@odoo.com>2018-08-13 20:16:34 +0200
commitc0968e68eda55df624fb94016d036a2af598b10c (patch)
tree2bc27d7931036dc85bcbdd693db61a5803b44670 /addons/website_theme_install/models/__init__.py
parent066cfc9598a307a48b86104f4bf861a58de09b41 (diff)
[ADD] website_theme_install: try to make theme multi website compliant
From now, when you install a theme, it load the data from xml to template table theme [ir.ui.view|ir.attachment|website.page|website.menu]. Data are only copied from this template table into the real table when you choose a theme on a website; Making them website_specific and with a link to the original to allow futur update. A special case is done to create theme.ir.ui.view when you are installing a theme, even if you continue to use template tag to create quick view. Co-authored-by: Derie Romain <rde@odoo.com> Co-authored-by: Kersten Jérémy <jke@odoo.com>
Diffstat (limited to 'addons/website_theme_install/models/__init__.py')
-rw-r--r--addons/website_theme_install/models/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/addons/website_theme_install/models/__init__.py b/addons/website_theme_install/models/__init__.py
index 786d2febfb6..0e35edfc5eb 100644
--- a/addons/website_theme_install/models/__init__.py
+++ b/addons/website_theme_install/models/__init__.py
@@ -2,5 +2,7 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import ir_module_module
-from . import ir_ui_view
+from . import res_company
from . import res_config_settings
+from . import theme_models
+from . import website