[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) <lpe@odoo.com>
This commit is contained in:
@@ -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});
|
||||
|
||||
Reference in New Issue
Block a user