Odoo Help

Welcome!

This community 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.

0

repeatIn doesn't work

By
Tormen
on 3/29/13, 9:09 AM 2,107 views

Hi,

I'm trying to write a further "bill of materials" report. The first use of repeatIn() works fine :

[[repeatIn(objects,'pricelist')]]

[[pricelist.name]] ([[pricelist.product_qty]] [[pricelist.product_uom.name]])

But the second use of repeatIn() doesn't work:

[[repeatIn(get_children(pricelist.bom_lines), 'l')]]

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

BR Torsten

0

patrick

--patrick--
1958
| 5 4 7
Baarn, Netherlands
--patrick--
patrick
On 3/29/13, 12:47 PM

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.

I've duplicated the BOM report, changed and saved it under "pricelist". I think the problem is that I'm not using new python scripts for my new pricelist. At the moment I've not realized the complete structure of scripts, reports, etc. I also tried this little tutorial : http://help.openerp.com/question/5224/put-report-in-module/. But it doesn't work too. I will try it again without changing any variables and filenames.

Tormen
on 3/30/13, 3:14 AM
0
-
On 10/2/13, 6:04 AM

Dear Tormen,

I have the same problem with the "mrp_industrial_design_bom". Have you solved this issue?

Regards, Paul

Your Answer

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 community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 3/29/13, 9:09 AM
Seen: 2107 times
Last updated: 3/16/15, 8:10 AM