Skip to content

Commit

Permalink
[FIX] account_debt_report: invoice detail on debt report
Browse files Browse the repository at this point in the history
closes #361

Ticket: 55619
X-original-commit: a5effb3
Signed-off-by: Katherine Zaoral <kz@adhoc.com.ar>
  • Loading branch information
Maximiliano Mezzavilla committed Oct 28, 2022
1 parent ba3555f commit aacd0c1
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions account_debt_report/models/res_partner.py
Expand Up @@ -96,12 +96,14 @@ def get_line_vals(
detail_lines = []
if show_invoice_detail:
for inv_line in record.move_id.invoice_line_ids:
inv_line_name = inv_line.name or "Sin descripción"
inv_line_product_uom_id_name = inv_line.product_uom_id.name or "Sin unidad de medida"
detail_lines.append(
("* %s x %s %s" % (
inv_line.name.replace(
inv_line_name.replace(
'\n', ' ').replace('\r', ''),
inv_line.quantity,
inv_line.product_uom_id.name)))
inv_line_product_uom_id_name)))
name = record.move_id.name
# similar to _format_aml_name
if record.ref and record.ref != '/':
Expand Down

0 comments on commit aacd0c1

Please sign in to comment.