[FIX] stock_account: costing method on product category

The field "costing method" on the product.category only appears when
the inventory valuation is set to "perpetual (automated)" which is
wrong. The user must be able to choose the costing method no matter
which inventory valuation method is chosen.

The problem is due to this commit b6a2c0a4ce
that changes the xml view and make the field invisible if the inventory
valuation is set to "Periodic (manual)".

This commit revert the change on the xml view and thus add again
the group attribute that should not have been removed.
This commit is contained in:
amoyaux
2017-02-17 16:29:17 +01:00
committed by Simon Lejeune
parent d4fdf7851f
commit 0a28b776ff
+1 -1
View File
@@ -18,7 +18,7 @@
<group name="account_property" position="before">
<group>
<group string="Inventory Valuation">
<field name="property_cost_method" attrs="{'invisible': [('property_valuation', '=', 'manual_periodic')]}"/>
<field name="property_cost_method" groups="stock_account.group_inventory_valuation"/>
<field name="property_valuation"/>
</group>
</group>