[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:
@@ -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", {
|
||||
|
||||
Reference in New Issue
Block a user