[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:
Goffin Simon 2017-06-22 13:14:11 +02:00
parent 27a47eb3c3
commit eba662336c
1 changed files with 1 additions and 1 deletions

View File

@ -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: