mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX] fix empty parter on rma picking
This commit is contained in:
@@ -34,7 +34,7 @@ class StockRule(models.Model):
|
||||
res["rma_line_id"] = line.id
|
||||
if line.delivery_address_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["price_unit"] = line._get_price_unit()
|
||||
return res
|
||||
|
||||
Reference in New Issue
Block a user