Odoo Hilfe


1 Antwort

Brett Lehrer USA - Vereinigte Staaten von Amerika

--Brett Lehrer--

| 5 5 10
Milwaukee, USA - Vereinigte Staaten von Amerika
--Brett Lehrer--
Director of IT and open source enthusiast.
Brett Lehrer USA - Vereinigte Staaten von Amerika
16.04.15, 20:06

The parent_left and parent_right fields are an implementation of the Nested Set Model concept of relational databases, and not exclusive to stock_location.  There are a number of scenarios where they are used to define nested hierarchy: account_account, product_category, ir_ui_menu, etc.  The idea is that given any one record, the parent_left and parent_right fields can define all of the children, children of children, and so on found under that record, and in O(1) complexity.  SerpentCS has written up a much better explanation of this concept already: http://www.serpentcs.com/serpentcs-openerp-parent_left-parent_right-explained

1 Kommentar
Anil R. Kesariya (Jupical) Indien
16.04.15, 21:38

Thanks Brett.

Fragen Sie
Keep Informed
1 Verfolger
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.

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now