I create a custom invoice report, the invoice is printed successfully using print menu.
i changed print button code like this
def invoice_print(self):
""" Print the invoice and mark it as sent, so that we can see more
easily the next step of the workflow
"""
self.ensure_one()
self.sent = True
return self.env['report'].get_action(self, 'custom_invoice_report.custom_invoice_report_template')
i changed default template id to custom template id
Odoo Warning - Warning
But the odoo shows the warning like this.
The invoice print function in my custom module is not called.
How to print custum report instead of default report??