mirror of
https://github.com/OCA/rma.git
synced 2025-02-16 17:11:47 +02:00
[FIX] rma: Propagate cancel_backorder argument
Respect inheritance.
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user