Hello,
I've been learning the owl framework for the past couple of weeks. In chapter 2 of the tutorial where I have to create a layout (https://www.odoo.com/documentation/16.0/developer/howtos/discover_js_framework/02_odoo_web_framework.html#a-new-layout), I cannot manage to make my code work and was wondering if any one of you can help me out.
I keep getting the following error message:
Here is the code of my component JS file:
/** @odoo-module **/
import { registry } from "@web/core/registry";
import { Layout } from "@web/search/layout";
const { Component } = owl;
class AwesomeDashboard extends Component {
setup(){
console.log("awesomedashboard is set")
}
}
AwesomeDashboard.components = { Layout };
AwesomeDashboard.template = "awesome_tshirt.clientaction";
registry.category("actions").add("awesome_tshirt.dashboard", AwesomeDashboard);
code of component xml file:
<?xml version="1.0" encoding="UTF-8" ?>
<templates xml:space="preserve">
<t t-name="awesome_tshirt.clientaction" owl="1">
<Layout display="{controlPanel:{'bottom-right':false, 'top_right':false}}">
</Layout>
</t>
</templates>