summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorrar-odoo <rar@odoo.com>2017-07-27 14:15:01 +0200
committerGitHub <noreply@github.com>2017-07-27 14:15:01 +0200
commit519ed866d7fb3cf6fe0078f2ee2c27d96a46dd9b (patch)
tree8d21456490c3f1c1a8c9011d8ae7b307a7a1417b
parenta436645ae8016d54c32eadd7d3ec0acb2ae78d9f (diff)
[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.
-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 654514d05c5..c6c3b9ff902 100644
--- a/addons/stock_account/views/product_views.xml
+++ b/addons/stock_account/views/product_views.xml
@@ -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)]"/>