mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[FIX] If balance_start is set by parser and equals 0.0, don't override it with default value
This commit is contained in:
@@ -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']
|
||||
|
||||
Reference in New Issue
Block a user