Skip to content

Commit 945e491

Browse files
committed
[FIX] l10n_ar_stock: added company country code check to modify custom header on reports
closes #286 Signed-off-by: Victoria Halac - hav (#l10n) <hav@adhoc.inc>
1 parent 46752dc commit 945e491

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

l10n_ar_stock/views/report_deliveryslip.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727

2828
<!-- custom header and footer -->
2929
<t t-set="o" position="after">
30-
<t t-set="custom_header" t-value="'l10n_ar.custom_header'"/>
30+
<t t-set="custom_header" t-value="o.company_id.country_id.code == 'AR' and 'l10n_ar.custom_header' or False"/>
3131
<t t-set="report_date" t-value="o.date_done"/>
3232
<t t-set="report_number" t-value="o.vouchers or o.name"/>
3333
<t t-set="pre_printed_report" t-value="o.book_id.lines_per_voucher"/>

0 commit comments

Comments
 (0)