From 4716664d9e4e0796ed0ab85b062189a3100c3cf8 Mon Sep 17 00:00:00 2001 From: Bhavik Bagdiya Date: Fri, 15 May 2015 11:49:13 +0530 Subject: [PATCH] [FIX] hr_expense: wrong domain --- addons/hr_expense/hr_expense.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/hr_expense/hr_expense.py b/addons/hr_expense/hr_expense.py index eee3a567c2d..fe2ab89356a 100644 --- a/addons/hr_expense/hr_expense.py +++ b/addons/hr_expense/hr_expense.py @@ -130,7 +130,7 @@ class hr_expense_expense(osv.osv): def onchange_currency_id(self, cr, uid, ids, currency_id=False, company_id=False, context=None): res = {'value': {'journal_id': False}} - journal_ids = self.pool.get('account.journal').search(cr, uid, [('type','=','purchase'), ('currency','=',currency_id), ('company_id', '=', company_id)], context=context) + journal_ids = self.pool.get('account.journal').search(cr, uid, [('type','=','purchase'), ('currency_id','=',currency_id), ('company_id', '=', company_id)], context=context) if journal_ids: res['value']['journal_id'] = journal_ids[0] return res