[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
This commit is contained in:
@@ -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>
|
||||
</div>
|
||||
<table>
|
||||
<tbody>
|
||||
|
||||
Reference in New Issue
Block a user