diff options
| author | svs-odoo <svs@odoo.com> | 2019-02-15 11:53:07 +0000 |
|---|---|---|
| committer | svs-odoo <svs@odoo.com> | 2019-03-29 14:54:45 +0000 |
| commit | 63d2a1675bbede40d6114087d3924103fc9a49d2 (patch) | |
| tree | dc5c9d8392544c4624d0be22827da97e03efacdb /addons | |
| parent | 62c9dedafda0cbdc618641eaa80c49535ab0b5f6 (diff) | |
[IMP] stock_account: cost field editable on FIFO + AUTO
Before this commit, when 'Inventory Valuation' was on 'Automated' and
'Costing Method' was on FIFO, the product cost field wasn't editable
anymore.
Now, it still editable in this configuration (other configuration aren't
affected).
Task #1937164
closes odoo/odoo#31145
Signed-off-by: Simon Lejeune (sle) <sle@openerp.com>
Diffstat (limited to 'addons')
| -rw-r--r-- | addons/stock_account/views/product_views.xml | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/addons/stock_account/views/product_views.xml b/addons/stock_account/views/product_views.xml index 427bb4f5226..4919bf85924 100644 --- a/addons/stock_account/views/product_views.xml +++ b/addons/stock_account/views/product_views.xml @@ -38,7 +38,7 @@ </field> <field name="standard_price" position="replace"> <field name="standard_price" - attrs="{'readonly':[('valuation','=','real_time')]}" + attrs="{'readonly':[('valuation','=','real_time'), ('cost_method', '!=', 'fifo')]}" widget='monetary' options="{'currency_field': 'cost_currency_id', 'field_digits': True}" class="float-left oe_inline"/> <div name="update_cost_price"> @@ -66,7 +66,7 @@ <label for="standard_price"/> <div name="standard_price_div" class="row ml-0"> <field name="standard_price" - attrs="{'readonly':[('valuation','=','real_time')]}" + attrs="{'readonly':[('valuation','=','real_time'), ('cost_method', '!=', 'fifo')]}" widget='monetary' options="{'currency_field': 'currency_id', 'field_digits': True}" class="float-left"/> <div name="update_cost_price"> <button string="Update Cost" type="action" |
