/** @odoo-module */ import { registry} from '@web/core/registry'; const { Component, xml } = owl export class DynamicDashboardTile extends Component { setup() { super.setup(...arguments); this.action = this.props.doAction } async getRecord() { var model_name = this.props.widget.model_name if (model_name){ await this.action.doAction({ type: 'ir.actions.act_window', res_model: model_name, view_mode: 'tree', views: [[false, "tree"]], domain: this.props.widget.domain, }); } } async getConfiguration() { var id = this.props.widget.id await this.action.doAction({ type: 'ir.actions.act_window', res_model: 'dashboard.block', res_id: id, view_mode: 'form', views: [[false, "form"]] }); } } DynamicDashboardTile.template = xml`

`