Skip to content
Snippets Groups Projects
Commit 94a8ad3f authored by yhu-odoo's avatar yhu-odoo
Browse files

[FIX] stock: avoid non-deterministic order for location


Stock.location is ordered by "complete_name" which is possible to be the
same (i.e. default production locations for different companies). This
may result non-deterministic order. Add "id" to avoid it.

closes odoo/odoo#79135

Signed-off-by: default avatarWilliam Henrotin (whe) <whe@odoo.com>
parent 29a53f19
No related branches found
No related tags found
No related merge requests found
......@@ -15,7 +15,7 @@ class Location(models.Model):
_description = "Inventory Locations"
_parent_name = "location_id"
_parent_store = True
_order = 'complete_name'
_order = 'complete_name, id'
_rec_name = 'complete_name'
_check_company_auto = True
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment