Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions l10n_uy_ux/models/account_move.py
Original file line number Diff line number Diff line change
Expand Up @@ -309,8 +309,10 @@ def _l10n_uy_edi_get_line_nom_and_desc(self, aml):
Sobrescribimos este método que devuelve el valor de NomItem y DscItem para cada línea del comprobante...
"""
# B7 NomItem, B8 DscItem
nom_item = aml.name and aml.name[:80] or "-"
description = aml.name and aml.name[80:] or ""
# Limpiamos saltos de línea que pueden romper el PDF
clean_name = aml.name.replace("\n", " ").replace("\r", " ") if aml.name else ""
nom_item = clean_name[:80] or "-"
description = clean_name[80:] or ""

if aml.l10n_uy_edi_addenda_ids:
adenda = [
Expand Down
Loading