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)
About This Community
This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 5/9/18, 12:59 PM|
|Seen: 386 times|
|Last updated: 7/9/18, 2:52 AM|