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 | etc.
I want to print two reports from one python method, i've tried all the codes that i found but, isn't working, actually a have this:
first_report = self.env.ref('custom_module.billing_report_sample').report_action(self)
second_report = self.env.ref('custom_module.invoice_report_sample').report_action(self)
return first_report, second_report
The method is called in the form view with a button.
Also i've tried to create three methods, one to print the first report, one for the second, and the thirth to call the first and the second.
Hello, you have to send the objects and their ids of the objects.
invoice_obj = self.env ['account.invoice'].browse([1,2])
then invoice_obj = account.invoice(1,2)
or twice the same object
invoice_obj = self.env ['account.invoice'].browse([1,1])
then invoice_obj = account.invoice(1,1)