minor fix add fields reference and invoice_type
This commit is contained in:
parent
66a78e906b
commit
cad6f5f3ce
6
sale.py
6
sale.py
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue