mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[fix] when the last line in draft of the statement is confirmed, the statement should be confirmed only after passing the usual balance check, if the check is enabled in the profile. I add a test that shows the bug
This commit is contained in:
@@ -95,4 +95,10 @@ class Statement(orm.Model):
|
||||
'state': 'confirm'
|
||||
}, context=context)
|
||||
need_to_update_view = True
|
||||
self.balance_check(
|
||||
cr,
|
||||
uid,
|
||||
statement.id,
|
||||
journal_type=statement.journal_id.type,
|
||||
context=context)
|
||||
return need_to_update_view
|
||||
|
||||
Reference in New Issue
Block a user