[FIX] sale_stock: 'uom' in context
Force the 'uom in the context to False on the field 'product_id' in the popup form view "sale.order.form.sale.stock", to force the non-propagation of the context. To avoid using the uos in function "_product_lst_price" when computing the public price of a product. opw:646880
This commit is contained in:
parent
31ffd010b1
commit
0e446eb5a6
|
@ -31,7 +31,7 @@
|
|||
</field>
|
||||
<xpath expr="//field[@name='order_line']/form//field[@name='product_id']" position="replace">
|
||||
<field name="product_id"
|
||||
context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':product_uom}"
|
||||
context="{'partner_id':parent.partner_id, 'quantity':product_uom_qty, 'pricelist':parent.pricelist_id, 'uom':False}"
|
||||
groups="base.group_user"
|
||||
on_change="product_id_change_with_wh(parent.pricelist_id,product_id,product_uom_qty,False,product_uos_qty,False,name,parent.partner_id, False, True, parent.date_order, product_packaging, parent.fiscal_position, False, parent.warehouse_id, context)"/>
|
||||
</xpath>
|
||||
|
|
Loading…
Reference in New Issue