From e136a8e746220f2b018c458a07a7b39a14b4eb4e Mon Sep 17 00:00:00 2001 From: wan Date: Fri, 15 Feb 2019 10:24:09 +0000 Subject: [PATCH] [FIX] account: fix rpc concurency in reconciliation widget When there are lots of lines to be considered, the rpc can come in the wrong order, causing the client to not display the wanted lines. By asking the user to hit enter or leave the input field, we reduce the number of requests and we get rid of the concurency of rpc closes odoo/odoo#30280 --- .../static/src/js/reconciliation/reconciliation_renderer.js | 2 +- addons/account/static/src/xml/account_reconciliation.xml | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js index 8ba23fda42f..0aedc28e770 100644 --- a/addons/account/static/src/js/reconciliation/reconciliation_renderer.js +++ b/addons/account/static/src/js/reconciliation/reconciliation_renderer.js @@ -255,7 +255,7 @@ var LineRenderer = Widget.extend(FieldManagerMixin, { 'click .accounting_view thead td': '_onTogglePanel', 'click .accounting_view tfoot td:not(.cell_left,.cell_right)': '_onShowPanel', 'click tfoot .cell_left, tfoot .cell_right': '_onSearchBalanceAmount', - 'input input.filter': '_onFilterChange', + 'change input.filter': '_onFilterChange', 'click .match .load-more a': '_onLoadMore', 'click .match .mv_line td': '_onSelectMoveLine', 'click .accounting_view tbody .mv_line td': '_onSelectProposition', diff --git a/addons/account/static/src/xml/account_reconciliation.xml b/addons/account/static/src/xml/account_reconciliation.xml index 86ed3e1e71e..1560cd92907 100644 --- a/addons/account/static/src/xml/account_reconciliation.xml +++ b/addons/account/static/src/xml/account_reconciliation.xml @@ -144,7 +144,8 @@
- + +