From 9d151db9c451fbe61783abccae0641acae0dfc44 Mon Sep 17 00:00:00 2001 From: Victor Decleire Date: Thu, 13 Nov 2025 14:11:48 +0100 Subject: [PATCH] [IMP] l10n_cl: Add information box for invoice copy in Chile it is necessary to print a copy of the invoice which sometimes is used to yield the invoice physically and so need a infomation box that will be filled by hand. the purpose of this improvement is to add an action in the cog menu which download the copy of the invoice which includes this information box task-5231331 --- addons/l10n_cl/__manifest__.py | 1 + addons/l10n_cl/views/report.xml | 17 +++++++ addons/l10n_cl/views/report_invoice.xml | 62 ++++++++++++++++++++++++- 3 files changed, 79 insertions(+), 1 deletion(-) create mode 100644 addons/l10n_cl/views/report.xml diff --git a/addons/l10n_cl/__manifest__.py b/addons/l10n_cl/__manifest__.py index 39877cd13cdc3..daa6859f99ad6 100644 --- a/addons/l10n_cl/__manifest__.py +++ b/addons/l10n_cl/__manifest__.py @@ -29,6 +29,7 @@ 'views/report_invoice.xml', 'views/res_partner.xml', 'views/res_config_settings_view.xml', + 'views/report.xml', 'data/l10n_cl_chart_data.xml', 'data/account_tax_report_data.xml', 'data/account_tax_tags_data.xml', diff --git a/addons/l10n_cl/views/report.xml b/addons/l10n_cl/views/report.xml new file mode 100644 index 0000000000000..902c9dd838fc8 --- /dev/null +++ b/addons/l10n_cl/views/report.xml @@ -0,0 +1,17 @@ + + + + + PDF with Copy + account.move + qweb-pdf + l10n_cl.yielding_invoice + l10n_cl.yielding_invoice + (object._get_report_base_filename() + "COPY") + + + report + + + + diff --git a/addons/l10n_cl/views/report_invoice.xml b/addons/l10n_cl/views/report_invoice.xml index 742d0ea47c5ae..6bd2889326d84 100644 --- a/addons/l10n_cl/views/report_invoice.xml +++ b/addons/l10n_cl/views/report_invoice.xml @@ -75,7 +75,6 @@ - @@ -268,4 +318,14 @@ + +