summaryrefslogtreecommitdiff
path: root/addons/product_margin/views
diff options
context:
space:
mode:
authorDebauche Stéphane <std@odoo.com>2019-12-02 14:47:07 +0000
committerDebauche Stéphane <std@odoo.com>2019-12-06 10:58:03 +0000
commit42d3a82a809b15652ee3dd61ff3ec414fe7a76cb (patch)
tree0cfeb33d37ec2e0877852de917f90231b2e69f85 /addons/product_margin/views
parentd6458e68df909898818ed3699c49f917ee3b561f (diff)
[IMP] stock_account: remove the wizard which change the ``standard_price``
Overwrite the method ``write`` of the model ``product.product``. When we write on ``standard_price``, if - the context key ``disable_auto_svl`` is not set - the ``cost_method`` is not "fifo" We automatically compute ``stock.valuation.layer`` (before we needed to manually call ``_change_standard_price``) Task #2031422 closes odoo/odoo#41265 Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons/product_margin/views')
-rw-r--r--addons/product_margin/views/product_product_views.xml2
1 files changed, 1 insertions, 1 deletions
diff --git a/addons/product_margin/views/product_product_views.xml b/addons/product_margin/views/product_product_views.xml
index 481ca67b80e..e3788e19899 100644
--- a/addons/product_margin/views/product_product_views.xml
+++ b/addons/product_margin/views/product_product_views.xml
@@ -40,7 +40,7 @@
<separator string="Purchases" colspan="4"/>
<field name="purchase_avg_price" string="Avg. Unit Price"/>
- <field name="standard_price" string="Standard Price" readonly="1"/>
+ <field name="standard_price" string="Standard Price"/>
<field name="purchase_num_invoiced" />
<field name="purchase_gap" />
<field name="total_cost" />