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

I am trying to override the default report_invoice_document for the account.move pdf reports. It is already showing up like this:

however as you can see, the original one is still there and the original on is being used when printing a report.

This is how I defined it in the code

What do I need to change in order for it to override the default report_invoice_document so that if someone generates a report at account.move the PDF will use my template?

Ảnh đại diện
Huỷ bỏ
Câu trả lời hay nhất

Hi,

If you are looking to override/rewrite (which is not a recommended way) the existing template, you have to update the id with original external id of the template, which is, account.report_invoice_document in this case.


Instead of rewriting the existing template, you can consider inheriting the existing report template and applying the necessary changes via inherited template.


Thanks & Regards

Walnut Software Solutions

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
2
thg 12 23
3053
1
thg 10 23
7505
1
thg 2 23
4465
0
thg 6 22
2632
0
thg 3 15
3412