minr fix
This commit is contained in:
parent
a21e29e121
commit
95e20deb17
7
sale.py
7
sale.py
|
@ -376,9 +376,12 @@ class Sale(metaclass=PoolMeta):
|
||||||
|
|
||||||
if v.get('unit_price'):
|
if v.get('unit_price'):
|
||||||
v['unit_price'] = Decimal(str(v['unit_price']))
|
v['unit_price'] = Decimal(str(v['unit_price']))
|
||||||
|
# else:
|
||||||
|
# v['unit_price'] = product.list_price
|
||||||
|
if v.get('unit_price') == 0:
|
||||||
|
pass
|
||||||
else:
|
else:
|
||||||
v['unit_price'] = product.list_price
|
v['base_price'] = product.list_price
|
||||||
v['base_price'] = product.list_price
|
|
||||||
v['unit'] = product.template.default_uom.id
|
v['unit'] = product.template.default_uom.id
|
||||||
v['description'] = product.name
|
v['description'] = product.name
|
||||||
v['product'] = v['product']['id']
|
v['product'] = v['product']['id']
|
||||||
|
|
Loading…
Reference in New Issue