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'):
|
if args.get('shipment_date'):
|
||||||
shipment_date = args['shipment_date']
|
shipment_date = args['shipment_date']
|
||||||
|
|
||||||
|
reference = args.get('reference', None)
|
||||||
|
invoice_type = args.get('invoice_type', 'P')
|
||||||
|
|
||||||
description = args.get('description', '')
|
description = args.get('description', '')
|
||||||
comment = args.get('comment', '')
|
comment = args.get('comment', '')
|
||||||
today = date.today()
|
today = date.today()
|
||||||
to_create = {
|
to_create = {
|
||||||
'shop': shop.id,
|
'shop': shop.id,
|
||||||
'invoice_type': 'P',
|
'invoice_type': invoice_type,
|
||||||
|
'reference': reference,
|
||||||
'company': shop.company.id,
|
'company': shop.company.id,
|
||||||
'party': party.id,
|
'party': party.id,
|
||||||
'sale_date': today,
|
'sale_date': today,
|
||||||
|
|
Loading…
Reference in New Issue