From 4e454a9537c01b88cba245381893b159aea498d2 Mon Sep 17 00:00:00 2001 From: "Lucas Perais (lpe)" Date: Fri, 2 Aug 2019 14:48:32 +0000 Subject: [PATCH] [FIX] account: reconciliation double click on proposition Open the reconciliation widget, with a statement line that has some move lines to reconcile with Put your browser in Fast 3G to slow down stuff then click multiple times on a move line to add it to the reconciliation chain of the statement line Before this commit, as many lines appeared in the reconciliation chain as many clicks were made After this commit, one can only click once on the lines linked to #35194 OPW 2042751 closes odoo/odoo#35417 Signed-off-by: Lucas Perais (lpe) --- .../static/src/js/reconciliation/reconciliation_renderer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js index 16ac1ba669b..c69b7923c0b 100644 --- a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js +++ b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js @@ -695,7 +695,8 @@ var LineRenderer = Widget.extend(FieldManagerMixin, { * @param {MouseEvent} event */ _onSelectMoveLine: function (event) { - var $el = $(event.target) + var $el = $(event.target); + $el.prop('disabled', true); this._destroyPopover($el); var moveLineId = $el.closest('.mv_line').data('line-id'); this.trigger_up('add_proposition', {'data': moveLineId});