[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
parent
03eec6ce73
commit
c1a65de7c6
|
@ -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);
|
||||
},
|
||||
});
|
||||
});
|
||||
|
|
Loading…
Reference in New Issue