From 7a47a02fa300088454a269df1b669bc3db75873c Mon Sep 17 00:00:00 2001 From: "Pedro M. Baeza" Date: Sun, 19 Sep 2021 17:22:19 +0200 Subject: [PATCH] [FIX] rma: Propagate cancel_backorder argument Respect inheritance. --- rma/__manifest__.py | 2 +- rma/models/stock_move.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/rma/__manifest__.py b/rma/__manifest__.py index f8ae5c6a..7b7c3337 100644 --- a/rma/__manifest__.py +++ b/rma/__manifest__.py @@ -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", diff --git a/rma/models/stock_move.py b/rma/models/stock_move.py index bb4653ea..38f416e5 100644 --- a/rma/models/stock_move.py +++ b/rma/models/stock_move.py @@ -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.