Skip to content

Commit

Permalink
[FIX] account_reconciliation_widget: m2x record keyboard navigation
Browse files Browse the repository at this point in the history
We couldn't  use our direction keys to go down the record list on a
many2one field as the navigation events are propagated from the field it
self and go up to the widget where a navigation through the reconcile
keys is expected.

Both behaviors are preserved.

TT45219
  • Loading branch information
chienandalu committed Oct 4, 2023
1 parent 524dd99 commit 311a0fa
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,13 @@ odoo.define("account.ReconciliationClientAction", function (require) {
}),

_onNavigationMove: function (ev) {
const $input = ev.target.$input;
// When we're on a relational field, we want to navigate inside the record
// selector, otherwise we'll be catching a wrong navigation event
if ($input && $input.hasClass("ui-autocomplete-input")) {
ev.stopPropagation();
return;
}
var non_reconciled_keys = _.keys(
// eslint-disable-next-line no-unused-vars
_.pick(this.model.lines, function (value, key, object) {
Expand Down

0 comments on commit 311a0fa

Please sign in to comment.