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",
|
"name": "Return Merchandise Authorization Management",
|
||||||
"summary": "Return Merchandise Authorization (RMA)",
|
"summary": "Return Merchandise Authorization (RMA)",
|
||||||
"version": "13.0.2.1.0",
|
"version": "13.0.2.1.1",
|
||||||
"development_status": "Production/Stable",
|
"development_status": "Production/Stable",
|
||||||
"category": "RMA",
|
"category": "RMA",
|
||||||
"website": "https://github.com/OCA/rma",
|
"website": "https://github.com/OCA/rma",
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class StockMove(models.Model):
|
|||||||
)
|
)
|
||||||
% (move.product_id.name, move.rma_receiver_ids.name)
|
% (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()
|
move_done = self.filtered(lambda r: r.state == "done").sudo()
|
||||||
# Set RMAs as received. We sudo so we can grant the operation even
|
# Set RMAs as received. We sudo so we can grant the operation even
|
||||||
# if the stock user has no RMA permissions.
|
# if the stock user has no RMA permissions.
|
||||||
|
|||||||
Reference in New Issue
Block a user