Fix missing unit_price currency convertion
issue3036 review697002 (transplanted from 1d1da0ad31d92ddc55db2710ef7ee850caee60b5)
This commit is contained in:
1 parent
cab1daec3d
commit
589e99c4e0
1 file changed
+3
-1
@@ -23,7 +23,9 @@ class Move(ModelSQL, ModelView):
|
||||
'name': move.rec_name,
|
||||
}
|
||||
if type_.endswith('supplier'):
|
||||
unit_price = move.unit_price
|
||||
with Transaction().set_context(date=move.effective_date):
|
||||
unit_price = currency_obj.compute(move.currency.id,
|
||||
move.unit_price, move.company.currency.id, round=False)
|
||||
else:
|
||||
unit_price = uom_obj.compute_price(move.product.default_uom,
|
||||
move.cost_price, move.uom)
|
||||
|
||||
Reference in new issue
Block a user