Skip to content
Browse files

[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 #30280
  • Loading branch information...
william-andre committed Feb 15, 2019
1 parent 24b0f09 commit e136a8e746220f2b018c458a07a7b39a14b4eb4e
@@ -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',
@@ -144,7 +144,8 @@

<div t-name="reconciliation.line.match">
<div class="match_controls">
<input class="filter" placeholder="Filter..." type="text" value=""/>
<input class="filter o_input" placeholder="Filter..." type="text" value=""/>
<button class="btn btn-secondary btn-sm fa fa-search" type="button"></button>

0 comments on commit e136a8e

Please sign in to comment.
You can’t perform that action at this time.