|
|
@ -2,9 +2,9 @@ |
|
|
|
<record id="product_template_share_form_view" model="ir.ui.view"> |
|
|
|
<field name="name">product.template.share.form</field> |
|
|
|
<field name="model">product.template</field> |
|
|
|
<field name="inherit_id" ref="purchase.view_product_supplier_inherit"/> |
|
|
|
<field name="inherit_id" ref="product.product_template_form_view"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<xpath expr="//label[@for='purchase_ok']/.." position="after"> |
|
|
|
<xpath expr="//field[@name='purchase_ok']/.." position="after"> |
|
|
|
<div groups="easy_my_coop.group_energiris_super_manager"> |
|
|
|
<field name="is_share"/> |
|
|
|
<label for="is_share"/> |
|
|
@ -14,14 +14,6 @@ |
|
|
|
<label for="display_on_website"/> |
|
|
|
</div> |
|
|
|
</xpath> |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
<record id="product_template_form_view" model="ir.ui.view"> |
|
|
|
<field name="name">product.template.common.form</field> |
|
|
|
<field name="model">product.template</field> |
|
|
|
<field name="inherit_id" ref="product.product_template_form_view"/> |
|
|
|
<field name="arch" type="xml"> |
|
|
|
<xpath expr="//field[@name='type']" position="after"> |
|
|
|
<field name="short_name" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user"/> |
|
|
|
<field name="default_share_product" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_energiris_user"/> |
|
|
@ -35,7 +27,6 @@ |
|
|
|
</field> |
|
|
|
</record> |
|
|
|
|
|
|
|
|
|
|
|
<record id="share_product_action" model="ir.actions.act_window"> |
|
|
|
<field name="name">Share type</field> |
|
|
|
<field name="type">ir.actions.act_window</field> |
|
|
|