mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[12.0][FIX] fix empty parter on rma picking
This commit is contained in:
committed by
DavidJForgeFlow
parent
dcc307f730
commit
44bffbe49a
@@ -34,7 +34,7 @@ class StockRule(models.Model):
|
|||||||
res["rma_line_id"] = line.id
|
res["rma_line_id"] = line.id
|
||||||
if line.delivery_address_id:
|
if line.delivery_address_id:
|
||||||
res["partner_id"] = line.delivery_address_id.id
|
res["partner_id"] = line.delivery_address_id.id
|
||||||
else:
|
elif line.rma_id.partner_id:
|
||||||
res["partner_id"] = line.rma_id.partner_id.id
|
res["partner_id"] = line.rma_id.partner_id.id
|
||||||
dest_loc = self.env["stock.location"].browse([res["location_dest_id"]])[0]
|
dest_loc = self.env["stock.location"].browse([res["location_dest_id"]])[0]
|
||||||
if dest_loc.usage == "internal":
|
if dest_loc.usage == "internal":
|
||||||
|
|||||||
Reference in New Issue
Block a user