[FIX] rma: Propagate cancel_backorder argument

Respect inheritance.
This commit is contained in:
Pedro M. Baeza
2021-09-19 17:22:19 +02:00
committed by Nikolaus Weingartmair
parent e869f3aed7
commit 12fb70ad11
2 changed files with 2 additions and 2 deletions

View File

@@ -66,7 +66,7 @@ class StockMove(models.Model):
)
% (move.product_id.name, move.rma_receiver_ids.name)
)
res = super()._action_done()
res = super()._action_done(cancel_backorder=cancel_backorder)
move_done = self.filtered(lambda r: r.state == "done").sudo()
# Set RMAs as received. We sudo so we can grant the operation even
# if the stock user has no RMA permissions.