I am not able reordering partner categories. Categories always appear in the order I have created them. In the source code, I see they are ordered by "parent_left, name", but I cannot understand what is this "parent_left" attribute and how to modify it.
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
This question has been flagged
1
Reply
2355
Views
parent_left and parent_right, sets up a Nested set model to enable fast hierarchical queries on the records of the current model. These attributes are generated automatically, that are related to
the parent_id field, see ORM API documentation
Ok, thank you for this good explaination. However this does not tell me nothing about how to reorder categories...
You temporary change parent_id in all childrens, in next step restore parent_id (select positions to restore in right order).
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Sign upRelated Posts | Replies | Views | Activity | |
---|---|---|---|---|
|
1
Mar 15
|
4412 | ||
|
1
Nov 24
|
94 | ||
|
2
Sep 24
|
705 | ||
|
1
May 23
|
3700 | ||
|
0
Jun 20
|
4 |