<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"
/>
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Accounting
- Inventory
- PoS
- Project management
- MRP
This question has been flagged
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"/>
Thank you for the quick response
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
Thank u for your quick response
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"
/>
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
Thank you for your quick response
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
2
Sep 23
|
2103 | ||
|
1
Dec 22
|
1079 | ||
|
3
Nov 22
|
2883 | ||
|
1
Nov 22
|
2940 | ||
|
1
May 22
|
2649 |