summaryrefslogtreecommitdiff
path: root/addons/base_import_module/tests/test_module
diff options
context:
space:
mode:
authorJorge Pinna Puissant <jpp@odoo.com>2019-03-22 10:49:57 +0000
committerJorge Pinna Puissant <jpp@odoo.com>2019-03-25 08:49:07 +0000
commit9a8859cc92193f4900c8b4b8d0829f41f2f9350f (patch)
treecfb4ebb04a24d280362bbbe2780e96ba2c98bda5 /addons/base_import_module/tests/test_module
parentb1ed7b463785a3f1d8b19b248f2bc6bc56e7591b (diff)
[FIX] account: write off with same account as the move lines
Having two move lines to reconcile. The debit one with a past date. The credit one with a future date. Have a write-off in the same account as the move lines. Before this commit, the function that creates the write-off move lines (_create_writeoff) returns two move lines (the write-off move line itself and the balance move line) normally only the balance move line should be returned. Because of this, the reconciliation is not done correctly: the credit move line is reconciled with the write-off and the balance line. And the debit move line is not reconciled. Now, the function _create_writeoff returns only the balance line so the debit move line, the credit move line and the balance line are totally reconciled. opw-1924973 closes odoo/odoo#32055 Signed-off-by: Cedric Snauwaert (csn) <csn@openerp.com>
Diffstat (limited to 'addons/base_import_module/tests/test_module')
0 files changed, 0 insertions, 0 deletions