Skip to Content
Menu
This question has been flagged
1 Reply
3575 Views

In the modul purchase i have a call to the report report_purchaseorder. I want with this actio call another report insted

<?xml version="1.0" encoding="utf-8"?>
<openerp>
    <data>
        <report
            string="Purchase Order"
            id="action_report_purchase_order"
            model="purchase.order"
            report_type="qweb-pdf"
            name="purchase.report_purchaseorder"
            file="purchase.report_purchaseorder"
        />
    </data>
</openerp>

Avatar
Discard
Best Answer

Hi,

You can override the original report in your custom module like this,


<report 
       string="Purchase Order"
       id="purchase.action_report_purchase_order"
       model="purchase.order"
       report_type="qweb-pdf"
       name="new_report_id_here"
       file="file_name"
/>


The id has to give as original_module_name.original_id


Thanks

Avatar
Discard