[FIX] Account : Bank statement should allow opening entries to reconcile disrepcting...
authorJay (OpenERP) <jvo@tinyerp.com>
Wed, 1 Sep 2010 09:07:43 +0000 (14:37 +0530)
committerJay (OpenERP) <jvo@tinyerp.com>
Wed, 1 Sep 2010 09:07:43 +0000 (14:37 +0530)
lp bug: https://launchpad.net/bugs/619775 fixed

bzr revid: jvo@tinyerp.com-20100901090743-yu0q8cku4bthbp06

addons/account/account_move_line.py

index 5dccb44..ebf870e 100644 (file)
@@ -694,7 +694,7 @@ class account_move_line(osv.osv):
 
     def fields_view_get(self, cr, uid, view_id=None, view_type='form', context={}, toolbar=False):
         result = super(osv.osv, self).fields_view_get(cr, uid, view_id,view_type,context,toolbar=toolbar)
-        if view_type=='tree' and 'journal_id' in context:
+        if view_type=='tree' and context.get('journal_id',False):
             title = self.view_header_get(cr, uid, view_id, view_type, context)
             journal = self.pool.get('account.journal').browse(cr, uid, context['journal_id'])