From c2d923f4862736d85b7cfb13f6ad48fcffe28f53 Mon Sep 17 00:00:00 2001 From: david Date: Thu, 15 Oct 2020 10:54:00 +0200 Subject: [PATCH] [FIX] rma: multicompany returns The move was created with the default company --- rma/models/rma.py | 1 + 1 file changed, 1 insertion(+) diff --git a/rma/models/rma.py b/rma/models/rma.py index 779c3821..6c650e21 100644 --- a/rma/models/rma.py +++ b/rma/models/rma.py @@ -965,6 +965,7 @@ class Rma(models.Model): picking_id=picking.id, rma_id=rma.id, move_orig_ids=[(4, rma.reception_move_id.id)], + company_id=picking.company_id.id, ) self.env['stock.move'].sudo().create(move_vals) rma.message_post(