diff --git a/sale.py b/sale.py index 58d6068..ee5b6d6 100644 --- a/sale.py +++ b/sale.py @@ -195,16 +195,17 @@ class Sale(metaclass=PoolMeta): data["city"] = report.invoice_address.subdivision_municipality.name data["zone"] = report.zone.name if report.zone else "" data["table"] = report.table.name if report.table else "" - data["lines"] = [{ - 'type': line.type, - "product": line.product.name 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} - for line in report.lines] + # data["lines"] = [{ + # 'type': line.type, + # "product": line.product.name 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} + # for line in report.lines] data["lines"] = [{ 'type': line.type, "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, "uom": line.unit.name if line.type != 'title' else None} for line in report.lines if not line.impreso]