product_usability: always show pricelist_id, just hide it when edit from pricelist
This commit is contained in:
@@ -32,11 +32,13 @@
|
||||
<field name="model">product.pricelist.item</field>
|
||||
<field name="inherit_id" ref="product.product_pricelist_item_form_view"/>
|
||||
<field name="arch" type="xml">
|
||||
<field name="applied_on" position="before">
|
||||
<field name="pricelist_id" position="move"/>
|
||||
</field>
|
||||
<field name="pricelist_id" position="attributes">
|
||||
<attribute name="invisible">not context.get('product_pricelist_item_main_view')</attribute>
|
||||
<attribute name="invisible">context.get('from_product_pricelist_view')</attribute>
|
||||
</field>
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
</odoo>
|
||||
|
||||
@@ -34,6 +34,10 @@
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
<field name="item_ids" position="attributes">
|
||||
<attribute name="context">{'from_product_pricelist_view': True, 'default_base': 'list_price'}</attribute>
|
||||
</field>
|
||||
|
||||
</field>
|
||||
</record>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user