[FIX] sale: The order lines weight must change when the quantity change
This is a regression of1cedcf6abb
and a following of9a9720ac14
opw-709700
This commit is contained in:
parent
2b8605c6e2
commit
df5f0f2570
|
@ -1225,8 +1225,9 @@ class sale_order_line(osv.osv):
|
||||||
result.update({'price_unit': price})
|
result.update({'price_unit': price})
|
||||||
if context.get('uom_qty_change', False):
|
if context.get('uom_qty_change', False):
|
||||||
values = {'price_unit': price}
|
values = {'price_unit': price}
|
||||||
if result.get('product_uos_qty'):
|
for field in ['product_uos_qty', 'th_weight']:
|
||||||
values['product_uos_qty'] = result['product_uos_qty']
|
if result.get(field):
|
||||||
|
values[field] = result[field]
|
||||||
return {'value': values, 'domain': {}, 'warning': False}
|
return {'value': values, 'domain': {}, 'warning': False}
|
||||||
if warning_msgs:
|
if warning_msgs:
|
||||||
warning = {
|
warning = {
|
||||||
|
|
Loading…
Reference in New Issue