[FIX] sale: Changing product qty to 0 in SO line
When changing the qty of a SO line to 0, the product_uos_qty, th_weight were not updated and then it lead to some errors. opw:748288
This commit is contained in:
parent
27a47eb3c3
commit
eba662336c
|
@ -1226,7 +1226,7 @@ class sale_order_line(osv.osv):
|
|||
if context.get('uom_qty_change', False):
|
||||
values = {'price_unit': price}
|
||||
for field in ['product_uos_qty', 'th_weight']:
|
||||
if result.get(field):
|
||||
if not result.get(field, False) is False:
|
||||
values[field] = result[field]
|
||||
return {'value': values, 'domain': {}, 'warning': False}
|
||||
if warning_msgs:
|
||||
|
|
Loading…
Reference in New Issue