From cb39355ee8a0661c8fd0818b2161ed5c2408498b Mon Sep 17 00:00:00 2001 From: Lucas Perais Date: Tue, 4 Oct 2022 14:18:32 +0000 Subject: [PATCH] [FIX] web: kanbanRecord honors useViewCompiler API Before this commit, the usage that KanbanRecord makes of useViewCompiler was faulty in that it did not respect the hook's API (the last argument is a dict params, not a string). After this commit, the usage of useViewCompiler by KanbanRecord is correct. X-original-commit: 8dbf7c88742e4603543005a1d5a158e5e0db2feb Part-of: odoo/odoo#104019 --- addons/web/static/src/views/kanban/kanban_record.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/views/kanban/kanban_record.js b/addons/web/static/src/views/kanban/kanban_record.js index f0ae5ac783e..a415610d779 100644 --- a/addons/web/static/src/views/kanban/kanban_record.js +++ b/addons/web/static/src/views/kanban/kanban_record.js @@ -165,7 +165,7 @@ export class KanbanRecord extends Component { const { arch } = archInfo; const ViewCompiler = Compiler || KanbanCompiler; - this.templates = useViewCompiler(ViewCompiler, arch, templates, KANBAN_BOX_ATTRIBUTE); + this.templates = useViewCompiler(ViewCompiler, arch, templates); if (KANBAN_TOOLTIP_ATTRIBUTE in templates) { useTooltip("root", {