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

For Odoo 9 I try to create multiple invoice types that only differ in the title of the created pdf. Im my case 3 types of titles should be present from the dropdown menu, ideally also when sending the invoice directly from odoo:

  • Invoice

  • Commercial Invoice

  • Advance Payment Invoice

Currently there is only one invoice report. That has 4 views that inherit each other. I manually tried what I need to do: use an xpath with replace in a new view that modifies the existing views.

I have had a look at https://www.askmpa.com/creating-multiple-invoice-templates-in-odoo-v8/

What I do not want to do is break all the exisiting layouts by duplicating every single view. This would make consistent changes almost impossible. I only what to replace the content of one tag in the report. In my case a single <h2>

Any idea of how to do this? Can I reuse the created views for two types of reports as created in the link above without duplicating them?

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 9 18
2145
1
thg 8 24
1204
1
thg 8 25
504
1
thg 4 25
1523
1
thg 9 24
2218