I need to know if e.g. lines taken from line_ids field are always returned in the same order on the list or is it random/undefined.
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
It should return according to the model order of order line in default or according to the fetching query or orm methods .
In the PyObject model, if the order is defined, then the retrieval of records will follow according to it. (Same will be reflected in Tree View, unless otherwise is defined)
If none defined, then by default, the order of retrieving the record will be based on the database-ID.
Note: The records shown in the List/Tree view will be always in-lieu with the Model's Order, however its order can be changed in XML views, which will be considered only in UI level, hence it won't alter the retrieval order when fetched in your code.
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 | |
---|---|---|---|---|
|
2
Mar 24
|
9826 | ||
|
2
Aug 21
|
12283 | ||
|
5
Aug 20
|
6373 | ||
|
1
Dec 19
|
4415 | ||
|
0
Sep 17
|
2616 |