[FIX] purchase: wrong list price UoM
Steps to reproduce: - Install Sale and Purchase and enable UoM - Change 'Acoustic bloc screen' purchase UoM to dozen - Create a PO for that product - Access the product page from PO line - Wrong Sales price Bug: the jsonrpc to read product data needlesslt sends the UoM in the context which leads to the sales price being updated by _compute_product_lst_price Fix: remove UoM from procut context as it is not necessary opw-3434574 closes odoo/odoo#140957 X-original-commit: fe04d61a886fa7b461ebf9bda2d7479fb69281cd Signed-off-by: William Henrotin (whe) <whe@odoo.com> Signed-off-by: Walid Hanniche (waha) <waha@odoo.com>
This commit is contained in:
@@ -235,7 +235,7 @@
|
||||
readonly="state in ('purchase', 'to approve', 'done', 'cancel')"
|
||||
required="not display_type"
|
||||
width="35%"
|
||||
context="{'partner_id':parent.partner_id, 'quantity':product_qty,'uom':product_uom, 'company_id': parent.company_id}"
|
||||
context="{'partner_id':parent.partner_id, 'quantity':product_qty, 'company_id': parent.company_id}"
|
||||
force_save="1" domain="[('purchase_ok', '=', True), '|', ('company_id', '=', False), ('company_id', '=', parent.company_id)]"/>
|
||||
<field name="name" widget="section_and_note_text"/>
|
||||
<field name="date_planned" optional="hide" required="not display_type" force_save="1"/>
|
||||
|
||||
Reference in New Issue
Block a user