Minor fix

This commit is contained in:
Oscar 2021-05-21 17:25:25 -05:00
parent 9c5aaa613c
commit 947da29654
1 changed files with 2 additions and 0 deletions

View File

@ -39,6 +39,8 @@ class Sale(metaclass=PoolMeta):
del v['id']
if v.get('amount'):
del v['amount']
if v.get('unit_price_w_tax'):
del v['unit_price_w_tax']
v['type'] = 'line'
product = Product(v['product'])
v['unit'] = product.template.default_uom.id