[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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user