diff --git a/awesome_tshirt/static/src/dashboard.js b/awesome_tshirt/static/src/dashboard.js index 975b4d2..eba1cc3 100644 --- a/awesome_tshirt/static/src/dashboard.js +++ b/awesome_tshirt/static/src/dashboard.js @@ -1,12 +1,26 @@ /** @odoo-module **/ import { registry } from "@web/core/registry"; +import { Layout } from "@web/search/layout"; +import { getDefaultConfig } from "@web/views/view"; -const { Component } = owl; +const { Component, useSubEnv } = owl; -class AwesomeDashboard extends Component {} +class AwesomeDashboard extends Component { + setup() { + useSubEnv({ + config: { + ...getDefaultConfig(), + ...this.env.config, + }, + }); + this.display = { + controlPanel: { "top-right": false, "bottom-right": false }, + }; + } +} -AwesomeDashboard.components = {}; +AwesomeDashboard.components = { Layout }; AwesomeDashboard.template = "awesome_tshirt.clientaction"; registry.category("actions").add("awesome_tshirt.dashboard", AwesomeDashboard); diff --git a/awesome_tshirt/static/src/dashboard.xml b/awesome_tshirt/static/src/dashboard.xml index 79b7db7..9d072b1 100644 --- a/awesome_tshirt/static/src/dashboard.xml +++ b/awesome_tshirt/static/src/dashboard.xml @@ -2,7 +2,11 @@ - + + + Hello owl + +