From 053bb45706f6da416cf87451dd8cd15f612f7c83 Mon Sep 17 00:00:00 2001 From: Cedric Snauwaert Date: Wed, 5 Dec 2018 15:36:58 +0000 Subject: [PATCH] [FIX] account: manual reconciliation auto assign partner is wrong when selecting a line with a partner, all propositions for other partner dissapeared and we have no way in the manual reconciliation to remove the partner that is set up, so we removed the fonctionality to set the partner automatically when selecting a line in case of a manual reconciliation. closes odoo/odoo#29289 --- .../static/src/js/reconciliation/reconciliation_model.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/account/static/src/js/reconciliation/reconciliation_model.js b/addons/account/static/src/js/reconciliation/reconciliation_model.js index ec20459a08a..6d17d4b8aed 100644 --- a/addons/account/static/src/js/reconciliation/reconciliation_model.js +++ b/addons/account/static/src/js/reconciliation/reconciliation_model.js @@ -135,7 +135,7 @@ var StatementModel = BasicModel.extend({ // Onchange the partner if not already set on the statement line. if(!line.st_line.partner_id && line.reconciliation_proposition - && line.reconciliation_proposition.length == 1 && prop.partner_id){ + && line.reconciliation_proposition.length == 1 && prop.partner_id && line.type === undefined){ return this.changePartner(handle, {'id': prop.partner_id, 'display_name': prop.partner_name}, true) .then(function (result) { return $.when(self._computeLine(line), self._performMoveLine(handle));