minor fix add fields reference and invoice_type

This commit is contained in:
Wilson Gomez 2023-09-25 08:28:34 -05:00
parent 66a78e906b
commit cad6f5f3ce
1 changed files with 5 additions and 1 deletions

View File

@ -141,12 +141,16 @@ class Sale(metaclass=PoolMeta):
if args.get('shipment_date'):
shipment_date = args['shipment_date']
reference = args.get('reference', None)
invoice_type = args.get('invoice_type', 'P')
description = args.get('description', '')
comment = args.get('comment', '')
today = date.today()
to_create = {
'shop': shop.id,
'invoice_type': 'P',
'invoice_type': invoice_type,
'reference': reference,
'company': shop.company.id,
'party': party.id,
'sale_date': today,