minor fix

This commit is contained in:
Wilson Gomez 2023-09-06 17:30:27 -05:00
parent a088ad46e9
commit c6ad98b99d
1 changed files with 1 additions and 1 deletions

View File

@ -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,