Skip to content

Commit 1bec97d

Browse files
committed
[FIX] l10n_ar_tax: fix header address logic in payment receipt report
- Update header_address assignment in report_payment_receipt_templates.xml to avoid errors if receiptbook_id or report_partner_id are missing Change note: Se corrigió la lógica que determina la dirección en el encabezado de los recibos de pago, evitando errores cuando faltan datos en la configuración del talonario. El cambio impacta únicamente en la impresión de recibos. closes #1369 Signed-off-by: rov-adhoc <rov@adhoc.com.ar>
1 parent 8777809 commit 1bec97d

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

l10n_ar_tax/views/report_payment_receipt_templates.xml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@
2121
<t t-set="document_legend" t-value="'Doc. no válido como factura'"/>
2222
<t t-set="report_number" t-value="o.name"/>
2323
<t t-set="report_name" t-value="o.partner_type == 'supplier' and 'Orden de pago' or 'Recibo'"/>
24-
<t t-set="header_address" t-value="o.receiptbook_id and o.receiptbook_id._fields.get('report_partner_id') and o.receiptbook_id.report_partner_id or o.company_id.partner_id"/>
24+
<t t-set="header_address" t-value="(o._fields.get('receiptbook_id') and o.receiptbook_id and o.receiptbook_id.report_partner_id or o.company_id.partner_id or '')"/>
25+
2526

2627
<t t-set="custom_footer">
2728
<div class="row">

0 commit comments

Comments
 (0)