[IMP] website_theme_install: allow to set mode on view in theme

Allow to set mode=primary on new view for theme
This commit is contained in:
Jeremy Kersten
2018-08-15 16:23:23 +02:00
parent 0fcb7caa2a
commit 7341f33f16
2 changed files with 2 additions and 0 deletions
@@ -73,6 +73,7 @@ class IrModuleModule(models.Model):
'arch': view.arch,
'arch_fs': view.arch_fs,
'priority': view.priority,
'mode': view.mode,
'active': view.active,
'inherit_id': view.inherit_id and view.inherit_id.id,
'theme_template_id': view.id,
@@ -20,6 +20,7 @@ class ThemeView(models.Model):
key = fields.Char()
type = fields.Char()
priority = fields.Integer(default=16, required=True)
mode = fields.Selection([('primary', "Base view"), ('extension', "Extension View")])
active = fields.Boolean(default=True)
arch = fields.Text()
arch_fs = fields.Char(default=compute_arch_fs)