[IMP] account: add printed report name for invoices

Before: when attempting to print an invoice, the downloaded file had the generic name "Invoice".

Now: downloaded files have the correct invoice number as names.

task-3477659

closes odoo/odoo#135093

X-original-commit: 6b3555d93221ef6db9e3265a95b127a2bb743469
Signed-off-by: Quentin De Paoli <qdp@odoo.com>
Signed-off-by: Ali Alfie (alal) <alal@odoo.com>
This commit is contained in:
Ali Alfie (alal)
2023-09-12 07:12:40 +00:00
parent 8b35a2b54a
commit 04be1dff54
+2 -2
View File
@@ -8,7 +8,7 @@
<field name="report_type">qweb-pdf</field>
<field name="report_name">account.report_invoice_with_payments</field>
<field name="report_file">account.report_invoice_with_payments</field>
<field name="print_report_name"/>
<field name="print_report_name">(object._get_report_base_filename())</field>
<field name="attachment"/>
<field name="binding_model_id" ref="model_account_move"/>
<field name="binding_type">report</field>
@@ -34,7 +34,7 @@
<field name="report_type">qweb-pdf</field>
<field name="report_name">account.report_invoice</field>
<field name="report_file">account.report_invoice</field>
<field name="print_report_name"/>
<field name="print_report_name">(object._get_report_base_filename())</field>
<field name="attachment"/>
<field name="binding_model_id" ref="model_account_move"/>
<field name="binding_type">report</field>