Hello, I am trying to remove the shipping address part from the purchase order report by inheriting the report and replacing the following part:
by creating a new custom module and inheriting the report with following code:
but it doesn't work at all.
I made sure the manifest.py file has the new xml file in it.
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Akuntansi
- Inventaris
- PoS
- Project
- MRP
Pertanyaan ini telah diberikan tanda
1
Balas
2333
Tampilan
Hi,
Please add below code also in your xml file,becasue in purchase_stock module odoo extend the report template and add else case ,in your case the else case is working ,so you need to replace that part of also...
<template id="report_purchaseorder_document_inherit_purchase_stock"
inherit_id="purchase_stock.report_purchaseorder_document">
<xpath expr="//t[@t-else]" position="replace">
</xpath>
</template>
inherit_id="purchase_stock.report_purchaseorder_document">
<xpath expr="//t[@t-else]" position="replace">
</xpath>
</template>
Menikmati diskusi? Jangan hanya membaca, ikuti!
Buat akun sekarang untuk menikmati fitur eksklufi dan agar terlibat dengan komunitas kami!
DaftarPost Terkait | Replies | Tampilan | Aktivitas | |
---|---|---|---|---|
|
1
Feb 24
|
1872 | ||
Inherit header and replace logo odoo 16 [SOLVED]
Diselesaikan
|
|
1
Jun 23
|
2737 | |
how are records passed to reporting template [V16]
Diselesaikan
|
|
1
Des 22
|
1799 | |
|
3
Apr 24
|
6665 | ||
|
0
Mar 24
|
750 |