From c1a65de7c6823a3cf1e609c6a412ea416bf8bedb Mon Sep 17 00:00:00 2001 From: Simone Rubino Date: Wed, 15 Jun 2022 13:07:04 +0200 Subject: [PATCH] [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? --- .../static/src/js/reconciliation_renderer.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/account_reconciliation_widget_partial/static/src/js/reconciliation_renderer.js b/account_reconciliation_widget_partial/static/src/js/reconciliation_renderer.js index ba2871bd..2d754790 100644 --- a/account_reconciliation_widget_partial/static/src/js/reconciliation_renderer.js +++ b/account_reconciliation_widget_partial/static/src/js/reconciliation_renderer.js @@ -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); + }, }); });