Skip to Content
Menu
This question has been flagged
1 Reply
1308 Views

Concrete example: I want to print/save an invoice. The invoice is printed in the language of the customer, but the name of the report is generated in the language of the user. In my case: invoice is entirely in German, name of the file is Invoice_INV_2020_2143. If I change my interface to German than also the name of the saved file is changing to Rechnung_INV_2020_2143.

Since I am generally sending my invoices from my mail client and not from Odoo, this is a bit annoying. Is there any workaround around this? As far as I look in the Reports the report name is inherited ((object._get_report_base_filename())), so it seems I need to further drill down. Any enlightenment is highly appreciated.

Thanks

Avatar
Discard
Best Answer

Hi Vlad:

The Invoice report is used for multiple types of documents. The underlying code generates the name of the Invoice based on the type of the document. Since they are using translated values, you are seeing the behavior that you observed.

Here's a reference to the code that is used to generate the name of the file in Odoo 13:

https://github.com/odoo/odoo/blob/13.0/addons/account/models/account_move.py#L1846

Avatar
Discard
Related Posts Replies Views Activity
2
Dec 23
11993
0
Oct 23
33
3
Oct 23
787
1
Oct 23
569
1
Aug 23
979