Merge PR #919 into 12.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2020-06-10 13:29:43 +00:00
2 changed files with 3 additions and 2 deletions

View File

@@ -1,7 +1,6 @@
# Copyright (C) 2011 Julius Network Solutions SARL <contact@julius.fr>
# 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",

View File

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