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'm trying to write a further "bill of materials" report. The first use of repeatIn() works fine :
[[pricelist.name]] ([[pricelist.product_qty]] [[pricelist.product_uom.name]])
But the second use of repeatIn() doesn't work:
When I'm try to printing the report I get an error message:
name 'get_children' is not defined
(<type 'exceptions.nameerror'="">, NameError("name 'get_children' is not defined",), <traceback object="" at="" 0x05f00990="">)
Can somebody help me? Thanks
The error indicates that the method you want to use (get_children) is not defined, or that the code has not been reloaded.
How did you get to the point of using get_children? Is it an existing method or did you write it yourself?
The second thing I notice is that the first repeatIn has got 2 inputs (objects,'pricelist'), while the second repeatIn only has got 1 (get_children()). I have not worked with reports myself yet, so this is at the moment what I can tell you.
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
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: 3/29/13, 9:09 AM|
|Seen: 2147 times|
|Last updated: 3/16/15, 8:10 AM|