diff --git a/work.py b/work.py index 33bbc88270..5b263a3bf9 100644 --- a/work.py +++ b/work.py @@ -76,9 +76,7 @@ class WorkCenter(DeactivableMixin, tree(separator=' / '), ModelSQL, ModelView): @classmethod def default_warehouse(cls): Location = Pool().get('stock.location') - locations = Location.search(cls.warehouse.domain) - if len(locations) == 1: - return locations[0].id + return Location.get_default_warehouse() @classmethod def get_picker(cls):