This commit is contained in:
Wilson Gomez 2023-05-12 08:36:06 -05:00
parent a21e29e121
commit 95e20deb17
1 changed files with 5 additions and 2 deletions

View File

@ -376,9 +376,12 @@ class Sale(metaclass=PoolMeta):
if v.get('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:
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['description'] = product.name
v['product'] = v['product']['id']