From c45a4e8f835fd8d22af8941fd85e2b951f1e046b Mon Sep 17 00:00:00 2001 From: mreficent Date: Thu, 17 Jan 2019 13:43:41 +0000 Subject: [PATCH] [FIX] account: remove duplicated code https://github.com/odoo/odoo/commit/42e74aae51904955e725e4a96e39eb2bd60f3019 was a backport of https://github.com/odoo/odoo/commit/7544c22de9a4cea028ff8fe63931bf68573e0821, and thus generated a duplicated code. closes odoo/odoo#30318 --- addons/account/models/account_move.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/addons/account/models/account_move.py b/addons/account/models/account_move.py index 770728053d8..313ecf60572 100644 --- a/addons/account/models/account_move.py +++ b/addons/account/models/account_move.py @@ -255,9 +255,6 @@ class AccountMove(models.Model): reversed_move = ac_move._reverse_move(date=date, journal_id=journal_id) reversed_moves |= reversed_move - #unreconcile all lines reversed - aml = ac_move.line_ids.filtered(lambda x: x.account_id.reconcile or x.account_id.internal_type == 'liquidity') - aml.remove_move_reconcile() #reconcile together the reconciliable (or the liquidity aml) and their newly created counterpart for account in set([x.account_id for x in aml]): to_rec = aml.filtered(lambda y: y.account_id == account)