[FIX] account_accountant: disable bank_rec_widget keyboard nav

Keyboard navigation was misleading, and it was adding a box around
focused which was irremovable because it was injected by the browser

closes odoo/odoo#102033

X-original-commit: 519bbe4b55c907bcd71d03e34dbc706d13a2268b
Related: odoo/enterprise#32235
Signed-off-by: Aaron Bohy (aab) <aab@odoo.com>
This commit is contained in:
PoMa
2022-10-05 09:34:56 +02:00
parent 63b8a92e9c
commit 16da82cbdd
2 changed files with 18 additions and 11 deletions
@@ -20,7 +20,7 @@ import { KanbanCompiler } from "./kanban_compiler";
import { KanbanCoverImageDialog } from "./kanban_cover_image_dialog";
import { KanbanDropdownMenuWrapper } from "./kanban_dropdown_menu_wrapper";
const { Component, onMounted, onWillUpdateProps, useRef, xml } = owl;
const { Component, onMounted, onWillUpdateProps, useRef } = owl;
const { COLORS } = ColorList;
const formatters = registry.category("formatters");
@@ -405,13 +405,5 @@ KanbanRecord.props = [
"record",
"templates",
];
KanbanRecord.template = xml`
<div
role="article"
t-att-class="getRecordClasses()"
t-att-data-id="props.canResequence and props.record.id"
t-att-tabindex="props.record.model.useSampleModel ? -1 : 0"
t-on-click="onGlobalClick"
t-ref="root">
<t t-call="{{ templates['${KANBAN_BOX_ATTRIBUTE}'] }}"/>
</div>`;
KanbanRecord.KANBAN_BOX_ATTRIBUTE = KANBAN_BOX_ATTRIBUTE;
KanbanRecord.template = "web.KanbanRecord";
@@ -0,0 +1,15 @@
<?xml version="1.0" encoding="UTF-8"?>
<templates xml:space="preserve">
<t t-name="web.KanbanRecord" owl="1">
<div
role="article"
t-att-class="getRecordClasses()"
t-att-data-id="props.canResequence and props.record.id"
t-att-tabindex="props.record.model.useSampleModel ? -1 : 0"
t-on-click="onGlobalClick"
t-ref="root">
<t t-call="{{ templates[this.constructor.KANBAN_BOX_ATTRIBUTE] }}"/>
</div>
</t>
</templates>