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>
14 lines
537 B
XML
14 lines
537 B
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<odoo>
|
|
<record id="view_attachment_form_inherit_website" model="ir.ui.view">
|
|
<field name="name">ir.attachment.form.inherit.website</field>
|
|
<field name="model">ir.attachment</field>
|
|
<field name="inherit_id" ref="base.view_attachment_form"/>
|
|
<field name="arch" type="xml">
|
|
<field name="mimetype" position="after">
|
|
<field name="website_id" groups="base.group_multi_website"/>
|
|
</field>
|
|
</field>
|
|
</record>
|
|
</odoo>
|