[FIX] stock_picking_batch: pass owner id to wave transfer.
X-original-commit: 03055045d227398e8cfda54ff9281319fc5e9e1d Part-of: odoo/odoo#76294
This commit is contained in:
@@ -36,7 +36,8 @@ class StockMoveLine(models.Model):
|
||||
|
||||
if not wave:
|
||||
wave = self.env['stock.picking.batch'].create({
|
||||
'is_wave': True
|
||||
'is_wave': True,
|
||||
'user_id': self.env.context.get('active_owner_id'),
|
||||
})
|
||||
line_by_picking = defaultdict(lambda: self.env['stock.move.line'])
|
||||
for line in self:
|
||||
|
||||
@@ -37,6 +37,7 @@ class StockPickingToWave(models.TransientModel):
|
||||
def attach_pickings(self):
|
||||
self.ensure_one()
|
||||
|
||||
self = self.with_context(active_owner_id=self.user_id.id)
|
||||
if self.line_ids:
|
||||
company = self.line_ids.company_id
|
||||
if len(company) > 1:
|
||||
|
||||
Reference in New Issue
Block a user