diff options
| author | Yannick Tivisse <yti@odoo.com> | 2020-07-08 09:45:05 +0000 |
|---|---|---|
| committer | Yannick Tivisse <yti@odoo.com> | 2020-07-08 11:04:09 +0000 |
| commit | a5874da269fc5546f45a2aadd022eb9dbab166e7 (patch) | |
| tree | 88b3d53ec9345698fe627f2fdefb01bcd548b327 /addons/purchase_stock/views | |
| parent | cb26f1aabdbd53f1ce9650659a256ce9c994391d (diff) | |
[IMP] purchase,stock_account: Improve account properties display
Purpose
=======
https://github.com/odoo/odoo/pull/52351 already improved the display
by hiding some account properties if it wasn't really neeeded on manual
inventory valuation.
Specification
=============
Keep the Account Properties section visible in any cases. The price
difference account is the only field of the section which is only
used in automated valuation.
closes odoo/odoo#54210
Taskid: 2232026
Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
Diffstat (limited to 'addons/purchase_stock/views')
| -rw-r--r-- | addons/purchase_stock/views/product_category_views.xml | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/addons/purchase_stock/views/product_category_views.xml b/addons/purchase_stock/views/product_category_views.xml new file mode 100644 index 00000000000..43320f30ea5 --- /dev/null +++ b/addons/purchase_stock/views/product_category_views.xml @@ -0,0 +1,13 @@ +<?xml version="1.0" encoding="utf-8"?> +<odoo> + <record id="product_category_view_form" model="ir.ui.view"> + <field name="name">product.category.view.form.inherit.purchase.stock</field> + <field name="model">product.category</field> + <field name="inherit_id" ref="purchase.view_category_property_form"/> + <field name="arch" type="xml"> + <field name="property_account_creditor_price_difference_categ" position="attributes"> + <attribute name="attrs">{'invisible':[('property_valuation', '=', 'manual_periodic')]}</attribute> + </field> + </field> + </record> +</odoo> |
