[MERGE] From Joel GrandGuillaume (Camp2Camp)
[odoo/odoo.git] / addons / hr_expense / hr_expense.py
index bb6a4d3..3c99276 100644 (file)
@@ -220,6 +220,7 @@ class hr_expense_line(osv.osv):
 
             # Compute based on pricetype of employee company
             pricetype_id = self.pool.get('hr.employee').browse(cr,uid,employee_id).user_id.company_id.property_valuation_price_type.id
+            context['currency_id']=self.pool.get('hr.employee').browse(cr,uid,employee_id).user_id.company_id.currency_id.id
             pricetype=self.pool.get('product.price.type').browse(cr,uid,pricetype_id)
             amount_unit=product.price_get(pricetype.field, context)[product.id]