From f22f90079f953c6d7ba52ac683c9f0a0caca07be Mon Sep 17 00:00:00 2001 From: Sergio Teruel Date: Tue, 9 Jun 2020 17:45:38 +0200 Subject: [PATCH] [IMP] stock_move_location: Allow to select any location. --- stock_move_location/__manifest__.py | 1 - stock_move_location/wizard/stock_move_location.py | 4 +++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/stock_move_location/__manifest__.py b/stock_move_location/__manifest__.py index f70c00d4c..fb8be7a28 100644 --- a/stock_move_location/__manifest__.py +++ b/stock_move_location/__manifest__.py @@ -1,7 +1,6 @@ # Copyright (C) 2011 Julius Network Solutions SARL # Copyright 2018 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl) - { "name": "Move Stock Location", "version": "12.0.1.3.1", diff --git a/stock_move_location/wizard/stock_move_location.py b/stock_move_location/wizard/stock_move_location.py index 04cabe3ca..cac188648 100644 --- a/stock_move_location/wizard/stock_move_location.py +++ b/stock_move_location/wizard/stock_move_location.py @@ -103,7 +103,9 @@ class StockMoveLocationWizard(models.TransientModel): self.stock_move_location_line_ids = False def _get_locations_domain(self): - return [('usage', '=', 'internal')] + return ['|', + ('company_id', '=', self.env.user.company_id.id), + ('company_id', '=', False)] def _create_picking(self): return self.env['stock.picking'].create({