mirror of
https://bitbucket.org/presik/trytonpsk-dash_sale.git
synced 2023-12-14 05:22:58 +01:00
minr fix
This commit is contained in:
parent
a21e29e121
commit
95e20deb17
1 changed files with 5 additions and 2 deletions
5
sale.py
5
sale.py
|
@ -376,8 +376,11 @@ 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
|
||||||
|
|
Loading…
Reference in a new issue