mirror of
https://github.com/OCA/account-reconcile.git
synced 2025-01-20 12:27:39 +02:00
[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:
@@ -50,6 +50,13 @@ odoo.define("account.ReconciliationClientAction", function (require) {
|
|||||||
}),
|
}),
|
||||||
|
|
||||||
_onNavigationMove: function (ev) {
|
_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(
|
var non_reconciled_keys = _.keys(
|
||||||
// eslint-disable-next-line no-unused-vars
|
// eslint-disable-next-line no-unused-vars
|
||||||
_.pick(this.model.lines, function (value, key, object) {
|
_.pick(this.model.lines, function (value, key, object) {
|
||||||
|
|||||||
Reference in New Issue
Block a user