mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[IMP] rma: Avoid error if group_id = False
This commit is contained in:
@@ -32,7 +32,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])
|
||||
elif "group_id" in values:
|
||||
elif "group_id" in values and values["group_id"]:
|
||||
pg = values["group_id"]
|
||||
line = pg.rma_line_id
|
||||
if line:
|
||||
|
||||
Reference in New Issue
Block a user