[FIX] If balance_start is set by parser and equals 0.0, don't override it with default value

This commit is contained in:
ecino
2014-10-29 15:45:12 +01:00
parent feba78fd2d
commit 5fa89db115

View File

@@ -135,7 +135,7 @@ class AccountStatementProfil(orm.Model):
"""
vals = {'profile_id': profile_id}
vals.update(parser.get_st_vals())
if not vals.get('balance_start'):
if 'balance_start' not in vals.keys():
# Get starting balance from journal balance if parser doesn't
# fill this data, simulating the manual flow
statement_obj = self.pool['account.bank.statement']