[FIX] Account bank statement: Small fix

bzr revid: mra@mra-laptop-20100907060658-ri74f61lbuyt43l9
This commit is contained in:
Mustufa Rangwala 2010-09-07 11:36:58 +05:30
parent 07ff80ca26
commit 0ff1aecac1
1 changed files with 1 additions and 1 deletions

View File

@ -632,7 +632,7 @@ class account_bank_statement_line(osv.osv):
context = {}
if not partner_id:
return res
account_id = False
line = self.browse(cursor, user, line_id)
if not line or (line and not line[0].account_id):
part = obj_partner.browse(cursor, user, partner_id, context=context)