mirror of
https://github.com/ForgeFlow/stock-rma.git
synced 2025-01-21 12:57:49 +02:00
[FIX]rma_account. currency method.
This commit is contained in:
@@ -49,8 +49,12 @@ class RmaOrder(models.Model):
|
||||
"uom_id": line.product_uom_id.id,
|
||||
"operation_id": operation,
|
||||
"product_qty": line.quantity,
|
||||
"price_unit": line.move_id.currency_id.compute(
|
||||
line.price_unit, line.currency_id, round=False
|
||||
"price_unit": line.move_id.currency_id._convert(
|
||||
line.price_unit,
|
||||
line.currency_id,
|
||||
line.company_id,
|
||||
line.date,
|
||||
round=False,
|
||||
),
|
||||
"rma_id": self.id,
|
||||
}
|
||||
|
||||
@@ -176,8 +176,12 @@ class RmaOrderLine(models.Model):
|
||||
"uom_id": line.product_uom_id.id,
|
||||
"operation_id": operation.id,
|
||||
"product_qty": line.quantity,
|
||||
"price_unit": line.move_id.currency_id.compute(
|
||||
line.price_unit, line.currency_id, round=False
|
||||
"price_unit": line.move_id.currency_id._convert(
|
||||
line.price_unit,
|
||||
line.currency_id,
|
||||
line.company_id,
|
||||
line.date,
|
||||
round=False,
|
||||
),
|
||||
"delivery_address_id": line.move_id.partner_id.id,
|
||||
"invoice_address_id": line.move_id.partner_id.id,
|
||||
|
||||
Reference in New Issue
Block a user