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
- Księgowość
- Zapasy
- PoS
- Project
- MRP
To pytanie dostało ostrzeżenie
1
Odpowiedz
2807
Widoki
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>
Podoba Ci się ta dyskusja? Dołącz do niej!
Stwórz konto dzisiaj, aby cieszyć się ekskluzywnymi funkcjami i wchodzić w interakcje z naszą wspaniałą społecznością!
Zarejestruj sięPowiązane posty | Odpowiedzi | Widoki | Czynność | |
---|---|---|---|---|
|
1
lut 24
|
2585 | ||
|
1
cze 23
|
3406 | ||
|
1
gru 22
|
2311 | ||
|
3
kwi 24
|
7650 | ||
|
0
mar 24
|
1387 |