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 !!!
Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!
About This Community
|Asked: 2/15/15, 9:39 AM|
|Seen: 2280 times|
|Last updated: 10/28/15, 9:54 AM|