From 33d60cfc542bd74cfaafc661c90cf6562ab90fcd Mon Sep 17 00:00:00 2001 From: AlexPForgeFlow Date: Tue, 5 Nov 2024 09:49:22 +0100 Subject: [PATCH] [FIX] rma: _check_move_partner compare with RMA commercial partner --- rma/models/rma_order_line.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/rma/models/rma_order_line.py b/rma/models/rma_order_line.py index eb66256d2..fd53d9ae5 100644 --- a/rma/models/rma_order_line.py +++ b/rma/models/rma_order_line.py @@ -622,7 +622,8 @@ def _check_move_partner(self): for rec in self: if ( rec.reference_move_id - and rec.reference_move_id.picking_id.partner_id != rec.partner_id + and rec.reference_move_id.picking_id.partner_id.commercial_partner_id + != rec.partner_id.commercial_partner_id ): raise ValidationError( _(