From 694e2852f58f03f82b02a75654a15c293cfc87fa Mon Sep 17 00:00:00 2001 From: Guewen Baconnier Date: Wed, 28 Oct 2020 08:44:24 +0100 Subject: [PATCH] Remove _order override in stock.location The default order of stock.location is 'complete_name'. Changing it to "name" can have side effects, and shouldn't be required for stock_inventory_lockdown. See https://github.com/OCA/stock-logistics-warehouse/pull/811/files#r512797834 --- stock_inventory_lockdown/models/stock_location.py | 1 - 1 file changed, 1 deletion(-) diff --git a/stock_inventory_lockdown/models/stock_location.py b/stock_inventory_lockdown/models/stock_location.py index cdb7b2c1d..39d3479d5 100644 --- a/stock_inventory_lockdown/models/stock_location.py +++ b/stock_inventory_lockdown/models/stock_location.py @@ -9,7 +9,6 @@ class StockLocation(models.Model): """Refuse changes during exhaustive Inventories""" _inherit = "stock.location" - _order = "name" @api.constrains("location_id") def _check_inventory_location_id(self):