summaryrefslogtreecommitdiff
path: root/addons/account/tests/__init__.py
diff options
context:
space:
mode:
authorCedric Snauwaert <csn@openerp.com>2019-10-10 10:01:11 +0000
committerCedric Snauwaert <csn@openerp.com>2019-11-04 08:50:50 +0000
commit0d6332fdbbea996aaae2dd07fb3c20deeb3a53b2 (patch)
tree8ebfe203579cea46d408917030ed35a91e17b46b /addons/account/tests/__init__.py
parentbadb95fbce6754c35215af4c4e6a0c844ceec59e (diff)
[IMP] account: statement automatically set starting and ending balance
To prevent having holes between statements and for better usability using import and synchronization we try to automatically set the starting and ending balance based on the previous existing statement. To do that, we added a new field previous_statement_id so that whenever we change the ending_balance of the previous statement, we recompute the starting balance and ending balance of the current statement. Also creating a new statement in between 2 others statements will automatically set the correct value to the starting and ending balance of that statement and all the statements afterwards. Exception: creating a statement by hand won't automatically set the balance_end_real, however if you create one between 2 statements, the balance_end_real of next statements will be recomputed Was Task #1880409 closes odoo/odoo#38696 Signed-off-by: Quentin De Paoli (qdp) <qdp@openerp.com>
Diffstat (limited to 'addons/account/tests/__init__.py')
-rw-r--r--addons/account/tests/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/account/tests/__init__.py b/addons/account/tests/__init__.py
index 94c61fdde22..004d914db65 100644
--- a/addons/account/tests/__init__.py
+++ b/addons/account/tests/__init__.py
@@ -9,6 +9,7 @@ from . import test_account_move_partner_count
from . import test_account_move_rounding
from . import test_account_invoice_report
from . import test_account_journal_dashboard
+from . import test_account_bank_statement
from . import test_bank_statement_reconciliation
from . import test_control_journal_account
from . import test_fiscal_position