[FIX] Stock account: product view (#18482)
In the group 'Stock valuation' the attr should hide the group when the preduct is a service OR if the valuation is manual (not real_time). Currently the domain check AND, not OR.
This commit is contained in:
@@ -52,7 +52,7 @@
|
||||
class="oe_link oe_read_only" colspan="2"/>
|
||||
</div>
|
||||
<group name="accounting" position="inside">
|
||||
<group name="property_inventory_valuation" string="Stock Valuation" attrs="{'invisible': [('type','=','service'), ('valuation', '!=', 'real_time')]}">
|
||||
<group name="property_inventory_valuation" string="Stock Valuation" attrs="{'invisible': ['|', ('type','=','service'), ('valuation', '!=', 'real_time')]}">
|
||||
<field name="property_valuation" invisible="1"/>
|
||||
<field name="property_stock_account_input"
|
||||
domain="[('deprecated', '=', False)]"/>
|
||||
|
||||
Reference in New Issue
Block a user