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({