minor fix
This commit is contained in:
parent
a088ad46e9
commit
c6ad98b99d
2
sale.py
2
sale.py
|
@ -438,7 +438,7 @@ class Sale(metaclass=PoolMeta):
|
|||
if args.get('shipment_date'):
|
||||
shipment_date = args['shipment_date']
|
||||
delivery = args.get('delivery_amount', 0)
|
||||
if args.get('delivery_invoice') and delivery and int(delivery) > 0:
|
||||
if args.get('delivery_invoice') and delivery and float(delivery) > 0:
|
||||
product = config.delivery_product
|
||||
lines.append({
|
||||
'product': product.id,
|
||||
|
|
Loading…
Reference in New Issue