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