[FIX] rma: Propagate cancel_backorder argument

Respect inheritance.
This commit is contained in:
Pedro M. Baeza
2021-09-19 17:22:19 +02:00
parent 4532315c00
commit 7a47a02fa3
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@
{
"name": "Return Merchandise Authorization Management",
"summary": "Return Merchandise Authorization (RMA)",
"version": "13.0.2.1.0",
"version": "13.0.2.1.1",
"development_status": "Production/Stable",
"category": "RMA",
"website": "https://github.com/OCA/rma",

View File

@@ -59,7 +59,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.