mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
@@ -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(
|
||||
|
||||
Reference in New Issue
Block a user