Skip to content

Commit 4dbd2c7

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. FW of #1369 closes #1372 Signed-off-by: rov-adhoc <rov@adhoc.com.ar>
1 parent 757b99c commit 4dbd2c7

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

l10n_ar_tax/views/report_payment_receipt_templates.xml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@
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.payment_type == 'outbound' 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"/>
25-
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 '')"/>
2625
<t t-set="custom_footer">
2726
<div class="row">
2827
<div name="footer_left_column" class="col-8">

0 commit comments

Comments
 (0)