[FIX] account_reconciliation_widget: m2x record keyboard navigation

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
This commit is contained in:
David
2023-10-04 15:21:37 +02:00
parent 524dd99372
commit 311a0fa788

View File

@@ -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) {