[FIX] account_reconciliation_widget_partial: Click on input field

Otherwise, the following is raised:
Error: Failed to execute 'removeChild' on 'Node': The node to be removed is no longer a child of this node. Perhaps it was moved in a 'blur' event handler?
pull/472/head
Simone Rubino 2022-06-15 13:07:04 +02:00
parent 03eec6ce73
commit c1a65de7c6
No known key found for this signature in database
GPG Key ID: D8C7155CF6A54797
1 changed files with 10 additions and 0 deletions

View File

@ -50,5 +50,15 @@ odoo.define('account_reconcile_partial.ReconciliationRenderer', function (requir
}
return this._super.apply(this, arguments);
},
_onSelectProposition: function (event) {
var $el = $(event.target);
if ($el.hasClass('edit_amount_input')) {
// When the input is clicked, it is not to select the line
// but simply to write in the input field.
// so there is no need to call super that usually removes the line
return;
}
return this._super.apply(this, arguments);
},
});
});