From 024bb524f6cda18b41563712e6c39a589dc0b963 Mon Sep 17 00:00:00 2001 From: "psi (Open ERP)" Date: Mon, 20 Dec 2010 11:23:04 +0530 Subject: [PATCH] [FIX] account: Account Journal onchange_type method context undefined error lp bug: https://launchpad.net/bugs/692139 fixed bzr revid: psi@tinyerp.co.in-20101220055304-u9clus3vjn9bxfhs --- addons/account/account.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/account.py b/addons/account/account.py index c3cd13a8115..ce1fd2d17b0 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -708,7 +708,7 @@ class account_journal(osv.osv): return self.name_get(cr, user, ids, context=context) - def onchange_type(self, cr, uid, ids, type, currency): + def onchange_type(self, cr, uid, ids, type, currency, context=None): obj_data = self.pool.get('ir.model.data') user_pool = self.pool.get('res.users')