mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] rma: prevent the creation of zero qty moves
This commit is contained in:
committed by
Florian da Costa
parent
c778c1db67
commit
60a9d6decb
@@ -30,6 +30,7 @@ class StockRule(models.Model):
|
||||
)
|
||||
if "rma_line_id" in values:
|
||||
line = values.get("rma_line_id")
|
||||
line = self.env["rma.order.line"].browse([line])
|
||||
res["rma_line_id"] = line.id
|
||||
if line.delivery_address_id:
|
||||
res["partner_id"] = line.delivery_address_id.id
|
||||
|
||||
Reference in New Issue
Block a user