Merge PR #173 into 12.0

Signed-off-by pedrobaeza
This commit is contained in:
OCA-git-bot
2020-10-15 15:00:36 +00:00

View File

@@ -57,7 +57,7 @@ class StockMove(models.Model):
"""
for move in self.filtered(
lambda r: r.state not in ('done', 'cancel')):
rma_receiver = move.rma_receiver_ids.sudo()
rma_receiver = move.sudo().rma_receiver_ids
if (rma_receiver
and move.quantity_done != rma_receiver.product_uom_qty):
raise ValidationError(