From c0d390d25219d7329d5bae0a0018966f15a80af5 Mon Sep 17 00:00:00 2001 From: Mustufa Rangwala Date: Tue, 28 Dec 2010 16:28:07 +0530 Subject: [PATCH] [REF] account bzr revid: mra@mra-laptop-20101228105807-tloznbt63oro0r2u --- addons/account/account.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/addons/account/account.py b/addons/account/account.py index bc4989cff6d..7ad20843e4c 100644 --- a/addons/account/account.py +++ b/addons/account/account.py @@ -607,8 +607,8 @@ class account_journal(osv.osv): } _defaults = { - 'user_id': lambda self,cr,uid,context: uid, - 'company_id': lambda self,cr,uid,c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id, + 'user_id': lambda self, cr, uid, context: uid, + 'company_id': lambda self, cr, uid, c: self.pool.get('res.users').browse(cr, uid, uid, c).company_id.id, } _sql_constraints = [ ('code_company_uniq', 'unique (code, company_id)', 'The code of the journal must be unique per company !'), @@ -708,7 +708,6 @@ class account_journal(osv.osv): return self.name_get(cr, user, ids, context=context) - 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')