From 02a3b8eef92fcfbc37b0abe189c7ab05ba3cbb46 Mon Sep 17 00:00:00 2001 From: Sergio Teruel Date: Thu, 11 Jun 2020 09:25:14 +0200 Subject: [PATCH] [IMP] stock_move_location: Allow to select any location. --- stock_move_location/wizard/stock_move_location.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/stock_move_location/wizard/stock_move_location.py b/stock_move_location/wizard/stock_move_location.py index f6ea3b59c..c236ea53d 100644 --- a/stock_move_location/wizard/stock_move_location.py +++ b/stock_move_location/wizard/stock_move_location.py @@ -115,7 +115,11 @@ 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(