Odoo Help


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.


Are the ORM methods (search, browse) recursion safe?

on 5/8/13, 2:12 PM 1,205 views

We have this scenario where users define a formula, and then they can include it in a new formula by referencing its code, this operation can ocurr (currently) limitless times. Based on the analyses made, we can expect less than 300 levels of referencing depth.

We're working on the reverse operation now, that is, replacing the codes in a formula for the actual operations described in the referenced formula. Naturally, this should continue until no more codes are found.

Would a recursive function be safer than a single loop? Consider that we need to use the ORM search and browse to find every formula needed.

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

1 follower(s)


Asked: 5/8/13, 2:12 PM
Seen: 1205 times
Last updated: 3/16/15, 8:10 AM