Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
3118 Visualizzazioni

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. 

Avatar
Abbandona
Risposta migliore

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>

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
1
feb 24
2958
1
giu 23
3831
1
dic 22
2559
3
apr 24
8154
0
mar 24
1659