Add header image in menu

This commit is contained in:
raimonesteve 2020-02-17 08:15:18 +01:00
parent b4da9536ec
commit 6ac3a2619a
2 changed files with 3 additions and 0 deletions

View File

@ -10,6 +10,7 @@ __all__ = ['CatalogMenu']
class CatalogMenu(metaclass=PoolMeta):
__name__ = 'esale.catalog.menu'
website = fields.Many2One('galatea.website', 'Website')
header_image = fields.Many2One('galatea.static.file', 'Header Image')
@fields.depends('_parent_parent.website', 'parent')
def on_change_with_website(self):

View File

@ -5,5 +5,7 @@ The COPYRIGHT file at the top level of this repository contains the full copyrig
<xpath expr="/form/field[@name=&quot;rec_name&quot;]" position="after">
<label name="website"/>
<field name="website"/>
<label name="header_image"/>
<field name="header_image"/>
</xpath>
</data>