Community mailing list archives

community@mail.odoo.com

categories: what are parent_left and parent_rigth

by
redCOR AG, robert rottermann
- 09/11/2015 02:58:55
Hi there,

in my quest to mass import partners I need to generate categories.
This I can to using an sql statement like the following:
statement = "INSERT INTO res_partner_category (id, name, active, parent_id) 
VALUES (DEFAULT, '%s', 't', %s) RETURNING id" % (name, pid)

however, when I look at the database structure of res_partner_category, i find 
that there are the two fields: parent_left and parent_rigth
What are they for?
And more importantly: what values should they have?

thanks
robert