Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
1 Trả lời
2364 Lượt xem

Hi everyone, hope you're having an excellent day and would be awesome if someone have a tip, solution or comment of the following. [Odoo v16]

I want to change the report name of one of the following documents:

In Mexico, each Invoice is complemented with a XML file.

Preferably, the name to be changed is the XML file, to match perfectly with the PDF one. The XML file is exported via a Wizard that I haven't gotten access to.

Either way, the possible solution for right now it to name the PDF file the same as the XML.

_________________

To accomplish this, I think I need to modify the report name:


In this case the expected name would be: FMTY-FINV202309387-MX-Invoice-4.0.pdf


Hope someone of the community helps or give any tips, best regards.


Ảnh đại diện
Huỷ bỏ

Hi,
From the UI you can change the printer report name : FMTY - %s' % (object._base_report_file_name())

Also, you can refer to this: https://www.odoo.com/it_IT/forum/assistenza-1/how-to-change-the-name-of-the-report-without-editing-the-name-in-base-class-64429

Hope it helps

Câu trả lời hay nhất

Tengo el mismo caso, alguna solucion?

Saludos

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
1
thg 8 23
5111
2
thg 11 24
1829
2
thg 6 25
1600
4
thg 5 24
5777
1
thg 5 23
3632