[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
This commit is contained in:
Cedric Snauwaert
2018-12-05 15:37:03 +00:00
parent 546c38d12c
commit 053bb45706
@@ -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));