Minor fix
This commit is contained in:
parent
9c5aaa613c
commit
947da29654
2
sale.py
2
sale.py
|
@ -39,6 +39,8 @@ class Sale(metaclass=PoolMeta):
|
||||||
del v['id']
|
del v['id']
|
||||||
if v.get('amount'):
|
if v.get('amount'):
|
||||||
del v['amount']
|
del v['amount']
|
||||||
|
if v.get('unit_price_w_tax'):
|
||||||
|
del v['unit_price_w_tax']
|
||||||
v['type'] = 'line'
|
v['type'] = 'line'
|
||||||
product = Product(v['product'])
|
product = Product(v['product'])
|
||||||
v['unit'] = product.template.default_uom.id
|
v['unit'] = product.template.default_uom.id
|
||||||
|
|
Loading…
Reference in New Issue