Se añade descripcion en la linea
This commit is contained in:
parent
ee13006322
commit
cb12fe5e0c
13
sale.py
13
sale.py
@ -195,16 +195,17 @@ class Sale(metaclass=PoolMeta):
|
|||||||
data["city"] = report.invoice_address.subdivision_municipality.name
|
data["city"] = report.invoice_address.subdivision_municipality.name
|
||||||
data["zone"] = report.zone.name if report.zone else ""
|
data["zone"] = report.zone.name if report.zone else ""
|
||||||
data["table"] = report.table.name if report.table else ""
|
data["table"] = report.table.name if report.table else ""
|
||||||
data["lines"] = [{
|
# data["lines"] = [{
|
||||||
'type': line.type,
|
# 'type': line.type,
|
||||||
"product": line.product.name if line.type != 'title' else None,
|
# "product": line.product.name if line.type != 'title' else None,
|
||||||
"quantity": line.quantity if line.type != 'title' else None,
|
# "quantity": line.quantity if line.type != 'title' else None,
|
||||||
"uom": line.unit.name if line.type != 'title' else None}
|
# "uom": line.unit.name if line.type != 'title' else None}
|
||||||
for line in report.lines]
|
# for line in report.lines]
|
||||||
|
|
||||||
data["lines"] = [{
|
data["lines"] = [{
|
||||||
'type': line.type,
|
'type': line.type,
|
||||||
"product": line.product.name if line.type != 'title' else None,
|
"product": line.product.name if line.type != 'title' else None,
|
||||||
|
"description": line.description if line.type != 'title' else None,
|
||||||
"quantity": line.quantity if line.type != 'title' else None,
|
"quantity": line.quantity if line.type != 'title' else None,
|
||||||
"uom": line.unit.name if line.type != 'title' else None}
|
"uom": line.unit.name if line.type != 'title' else None}
|
||||||
for line in report.lines if not line.impreso]
|
for line in report.lines if not line.impreso]
|
||||||
|
Loading…
Reference in New Issue
Block a user