mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX]various fixes
This commit is contained in:
@@ -23,6 +23,10 @@ class ProcurementOrder(models.Model):
|
||||
res['partner_id'] = line.delivery_address_id.id
|
||||
else:
|
||||
res['partner_id'] = line.rma_id.partner_id.id
|
||||
dest_loc = self.env["stock.location"].browse([
|
||||
res["location_dest_id"]])[0]
|
||||
if dest_loc.usage == "internal":
|
||||
res["price_unit"] = line.price_unit
|
||||
return res
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user