[FIX] Module:account Fix keyerror in general_ledger report
bzr revid: hda@tinyerp.com-20090821094445-gy2l6bhoxy2mi8o1
This commit is contained in:
@@ -344,7 +344,7 @@ class general_ledger_landscape(rml_parse.rml_parse):
|
||||
"FROM account_move_line l "\
|
||||
"WHERE l.account_id = %s AND %s"%(account.id,self.query))
|
||||
sum_solde = self.cr.fetchone()[0] or 0.0
|
||||
if form['soldeinit']:
|
||||
if form.get('soldeinit',False):
|
||||
sum_solde += account.init_debit - account.init_credit
|
||||
|
||||
return sum_solde
|
||||
|
||||
Reference in New Issue
Block a user