From c0968e68eda55df624fb94016d036a2af598b10c Mon Sep 17 00:00:00 2001 From: Jeremy Kersten Date: Sun, 12 Aug 2018 23:17:24 +0200 Subject: [ADD] website_theme_install: try to make theme multi website compliant MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Co-authored-by: Kersten Jérémy --- addons/website_theme_install/security/ir.model.access.csv | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100644 addons/website_theme_install/security/ir.model.access.csv (limited to 'addons/website_theme_install/security/ir.model.access.csv') diff --git a/addons/website_theme_install/security/ir.model.access.csv b/addons/website_theme_install/security/ir.model.access.csv new file mode 100644 index 00000000000..fa2d6a8b262 --- /dev/null +++ b/addons/website_theme_install/security/ir.model.access.csv @@ -0,0 +1,6 @@ +id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink +access_theme_ir_ui_view,access_theme_ir_ui_view,model_theme_ir_ui_view,base.group_system,1,1,1,1 +access_theme_ir_attachment,access_theme_ir_attachment,model_theme_ir_attachment,base.group_system,1,1,1,1 +access_theme_website_menu,access_theme_website_menu,model_theme_website_menu,base.group_system,1,1,1,1 +access_theme_website_page,access_theme_website_page,model_theme_website_page,base.group_system,1,1,1,1 + -- cgit v1.2.3