[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
This commit is contained in:
Lucas Perais
2022-10-25 17:16:12 +02:00
parent e2b3463b5a
commit cb39355ee8
@@ -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", {