Skip to Content
Menu
This question has been flagged
4 Replies
4267 Views
<report
id="account_invoices"
model="account.move"
string="Invoices"
report_type="qweb-pdf"
name="account.report_invoice_with_payments"
file="account.report_invoice_with_payments"
attachment="(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'.pdf')"
print_report_name="(object._get_report_base_filename())"
groups="account.group_account_invoice"
/>
Avatar
Discard
Best Answer

You can use the delete tag in XML to remove any record created from XML.

Try the following code:

<delete id="account.account_invoices" model="ir.actions.report"/>



Avatar
Discard
Author

Thank you for the quick response

Best Answer

Hello Harikrishnan K, 

You can inherit the record id and add the "menu="False"".It will hide from the print menu.

        Example : <report

                        id="account.account_invoices"

                        menu="False"/>

this will automatically hide the report menu for this report.. thanks

For More Information Contact Us :- https://kanakinfosystems.com/odoo-development-services


Avatar
Discard
Author

Thank u for your quick response

Author Best Answer

I have  removed from  invoice from print  using this code in report.xml file inside my module.

<report
            id="account.account_invoices"
            model="account.move"
            menu="False"
            string="Invoices"
            report_type="qweb-pdf"
            name="account.report_invoice_with_payments"
            file="account.report_invoice_with_payments"
            attachment="(object.state == 'posted') and ((object.name or 'INV').replace('/','_')+'.pdf')"
            print_report_name="(object._get_report_base_filename())"
            groups="account.group_account_invoice"
        />

Avatar
Discard
Best Answer

Hi,

Try this, to remove the report from the print menu,

<record id="base.ir_module_reference_print" model="ir.actions.report">
<field name="binding_model_id" eval="False"/>
</record>

Where id is the Id of the report.

Thanks

Avatar
Discard
Author

Thank you for your quick response

Related Posts Replies Views Activity
2
Sep 23
2103
1
Dec 22
1079
3
Nov 22
2883
1
Nov 22
2940
1
May 22
2649