Browse Source

[IMP] set default_code required when is_share is True

pull/18/head
houssine 5 years ago
parent
commit
8078b6cedc
  1. 12
      easy_my_coop/view/product_view.xml

12
easy_my_coop/view/product_view.xml

@ -35,7 +35,17 @@
</xpath>
</field>
</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">
<field name="name">Share type</field>

Loading…
Cancel
Save