|
@ -36,6 +36,16 @@ |
|
|
</field> |
|
|
</field> |
|
|
</record> |
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="product_template_only_form_view" model="ir.ui.view"> |
|
|
|
|
|
<field name="name">product.template.product.form</field> |
|
|
|
|
|
<field name="model">product.template</field> |
|
|
|
|
|
<field name="inherit_id" ref="product.product_template_only_form_view"/> |
|
|
|
|
|
<field name="arch" type="xml"> |
|
|
|
|
|
<field name="default_code" position="attributes"> |
|
|
|
|
|
<attribute name="attrs">{'required': [('is_share', '=', True)]}</attribute> |
|
|
|
|
|
</field> |
|
|
|
|
|
</field> |
|
|
|
|
|
</record> |
|
|
|
|
|
|
|
|
<record id="share_product_action" model="ir.actions.act_window"> |
|
|
<record id="share_product_action" model="ir.actions.act_window"> |
|
|
<field name="name">Share type</field> |
|
|
<field name="name">Share type</field> |
|
|