[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:
rar-odoo
2017-07-27 14:15:01 +02:00
committed by GitHub
parent a436645ae8
commit 519ed866d7
+1 -1
View File
@@ -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)]"/>