From cb83ae6b38080d034aa96a10e9243fb9f35310a4 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 36e6185c..265e4273 100644 --- a/rma/__manifest__.py +++ b/rma/__manifest__.py @@ -3,7 +3,7 @@ { "name": "Return Merchandise Authorization Management", "summary": "Return Merchandise Authorization (RMA)", - "version": "14.0.1.0.0", + "version": "14.0.1.0.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 fc22806b..635db5d6 100644 --- a/rma/models/stock_move.py +++ b/rma/models/stock_move.py @@ -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.