I am trying to customize a new invoice template. I am done with all the customizations I was asked for but now I am stuck with a problem in the tax text that appears under the lines in the statement. I want to inherit : tax_group_totals view or document_tax_totals view and update it according to my need. Is there any piece of code that can help me achieve this please? Appreciate your help
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Kế toán
- Tồn kho
- PoS
- Project
- MRP
Câu hỏi này đã bị gắn cờ
Hi,
You can inherit document_tax_totals template like following.
<template id="report_sales_total_inherited" inherit_id="account.document_tax_totals">
Add your custom code using xpath
</template>
Or
You can call a new template in the invoice report with the same code as document_tax_totals.
template id of invoice report is account.report_invoice_document
For more reference you can check the blog below.
https://www.cybrosys.com/blog/inheriting-existing-pdf-reports-in-odoo14
Regards
Bạn có hứng thú với cuộc thảo luận không? Đừng chỉ đọc, hãy tham gia nhé!
Tạo tài khoản ngay hôm nay để tận hưởng các tính năng độc đáo và tham gia cộng đồng tuyệt vời của chúng tôi!
Đăng kýBài viết liên quan | Trả lời | Lượt xem | Hoạt động | |
---|---|---|---|---|
|
1
thg 3 24
|
1854 | ||
|
2
thg 11 16
|
4636 | ||
|
2
thg 3 15
|
5857 | ||
|
2
thg 6 25
|
1292 | ||
|
0
thg 10 24
|
1182 |