mimnor fix add effective date and reference
This commit is contained in:
parent
eb3e7b671a
commit
2b57303cdd
|
@ -349,7 +349,8 @@ class ShipmentDetailedReport(Report):
|
|||
shipments_id = [model + ',' + str(sh['id']) for sh in shipments]
|
||||
fields_names = [
|
||||
'product.account_category.name', 'product.name', 'product.cost_price',
|
||||
'quantity', 'to_location.name', 'from_location.name'
|
||||
'quantity', 'to_location.name', 'from_location.name', 'shipment.reference',
|
||||
'effective_date'
|
||||
]
|
||||
fields = ModelShipment.fields_get(fields_names=['operation_center', 'customer', 'supplier'])
|
||||
if 'operation_center' in fields.keys():
|
||||
|
@ -445,6 +446,8 @@ class ShipmentDetailedReport(Report):
|
|||
records[key]['last_cost'] = m['last_cost']
|
||||
except:
|
||||
records[key] = m
|
||||
records[key]['shipment.']['reference'] = ''
|
||||
records[key]['effective_date'] = ''
|
||||
report_context['records'] = records.values()
|
||||
|
||||
report_context['company'] = company
|
||||
|
|
Binary file not shown.
Loading…
Reference in New Issue