From 87fbe7b8833148d3abfd8902292ee04e09d46a97 Mon Sep 17 00:00:00 2001 From: Amit Patel Date: Wed, 19 Sep 2012 17:13:23 +0530 Subject: [PATCH] [IMP]:account:pass correct context in journal_id bzr revid: apa@tinyerp.com-20120919114323-dkmciz9p698mgbo2 --- addons/account/account_move_line.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/addons/account/account_move_line.py b/addons/account/account_move_line.py index cf3c1e31a82..c0c7ada499d 100644 --- a/addons/account/account_move_line.py +++ b/addons/account/account_move_line.py @@ -226,6 +226,9 @@ class account_move_line(osv.osv): partner_obj = self.pool.get('res.partner') currency_obj = self.pool.get('res.currency') context = self.convert_to_period(cr, uid, context) + #pass the right context when search_defaul_journal_id + if context.get('search_default_journal_id',False): + context.update({'journal_id':context.get('search_default_journal_id',False)}) # Compute simple values data = super(account_move_line, self).default_get(cr, uid, fields, context=context) # Starts: Manual entry from account.move form