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.
First, thank you Serpent CS for upgrading jasper_reports to work with Odoo 8.
It works nicely. Except 1 thing, on Sales Order form, it does not disply order lines. I found that despite we have declare, as example, OPENERP_RELATIONS = ["order_line"], as we want to loop through Sales Order's Lines. It still display only the 1st line.
After dig through code, I found the problem in /jasper_reports/JasperReports/BrowseDataGenerator.py -> in the method def generateIds(.....)
Following part of code think "order_line" is not a list (in v8 order_line is recordset), and so it just give log warning and ignore it.
if not isinstance(value, list):
self.warning("Field '%s' in model '%s' is not a relation." % (root, self.model))
My solution is just comment this part out. And now it works !!!
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: 2/15/15, 9:39 AM|
|Seen: 3290 times|
|Last updated: 10/28/15, 9:54 AM|