mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] rma: multicompany returns
The move was created with the default company
This commit is contained in:
@@ -965,6 +965,7 @@ class Rma(models.Model):
|
|||||||
picking_id=picking.id,
|
picking_id=picking.id,
|
||||||
rma_id=rma.id,
|
rma_id=rma.id,
|
||||||
move_orig_ids=[(4, rma.reception_move_id.id)],
|
move_orig_ids=[(4, rma.reception_move_id.id)],
|
||||||
|
company_id=picking.company_id.id,
|
||||||
)
|
)
|
||||||
self.env['stock.move'].sudo().create(move_vals)
|
self.env['stock.move'].sudo().create(move_vals)
|
||||||
rma.message_post(
|
rma.message_post(
|
||||||
|
|||||||
Reference in New Issue
Block a user