summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authoramoyaux <arm@odoo.com>2017-02-16 11:28:19 +0100
committerSimon Lejeune <sle@openerp.com>2017-02-17 16:29:17 +0100
commit0a28b776ff61ba256b3e9daedd4f0aa940d39b7b (patch)
tree5eebe87c9c1ea2fa90cb8fb1204ebd186c220967 /addons
parentd4fdf7851f7ee5167a56e9d6f60126d75ebda828 (diff)
[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 b6a2c0a4ce239879942ed65841204358fbe7f197 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.
Diffstat (limited to 'addons')
-rw-r--r--addons/stock_account/views/product_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/stock_account/views/product_views.xml b/addons/stock_account/views/product_views.xml
index a987ce08110..8587f2aebe2 100644
--- a/addons/stock_account/views/product_views.xml
+++ b/addons/stock_account/views/product_views.xml
@@ -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>