mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] rma_purchase: button cancel
This commit is contained in:
@@ -218,6 +218,12 @@ class RmaOrderLine(models.Model):
|
|||||||
result["domain"] = [("id", "in", orders.ids)]
|
result["domain"] = [("id", "in", orders.ids)]
|
||||||
return result
|
return result
|
||||||
|
|
||||||
|
def action_rma_cancel(self):
|
||||||
|
res = super().action_rma_cancel()
|
||||||
|
for line in self:
|
||||||
|
line.purchase_order_line_ids.mapped("order_id").button_cancel()
|
||||||
|
return res
|
||||||
|
|
||||||
def _get_rma_purchased_qty(self):
|
def _get_rma_purchased_qty(self):
|
||||||
self.ensure_one()
|
self.ensure_one()
|
||||||
qty = 0.0
|
qty = 0.0
|
||||||
|
|||||||
Reference in New Issue
Block a user