Merge pull request #60 from ecino/7.0

[FIX] If balance_start is set by parser and equals 0.0, don't override it
This commit is contained in:
Pedro M. Baeza
2014-11-03 08:57:50 +01:00

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 vals.get('balance_start') is None:
# Get starting balance from journal balance if parser doesn't
# fill this data, simulating the manual flow
statement_obj = self.pool['account.bank.statement']