From 16da82cbddce566ecee5d19448f4253a2ec98b92 Mon Sep 17 00:00:00 2001 From: PoMa Date: Fri, 30 Sep 2022 12:22:17 +0000 Subject: [PATCH] [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) --- .../web/static/src/views/kanban/kanban_record.js | 14 +++----------- .../web/static/src/views/kanban/kanban_record.xml | 15 +++++++++++++++ 2 files changed, 18 insertions(+), 11 deletions(-) create mode 100644 addons/web/static/src/views/kanban/kanban_record.xml diff --git a/addons/web/static/src/views/kanban/kanban_record.js b/addons/web/static/src/views/kanban/kanban_record.js index 35e099adfc2..b0da1eb49fa 100644 --- a/addons/web/static/src/views/kanban/kanban_record.js +++ b/addons/web/static/src/views/kanban/kanban_record.js @@ -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` -
- -
`; +KanbanRecord.KANBAN_BOX_ATTRIBUTE = KANBAN_BOX_ATTRIBUTE; +KanbanRecord.template = "web.KanbanRecord"; diff --git a/addons/web/static/src/views/kanban/kanban_record.xml b/addons/web/static/src/views/kanban/kanban_record.xml new file mode 100644 index 00000000000..99c3db36dc2 --- /dev/null +++ b/addons/web/static/src/views/kanban/kanban_record.xml @@ -0,0 +1,15 @@ + + + + +
+ +
+
+