diff --git a/odoo_dynamic_dashboard/static/src/js/dynamic_dashboard_tile.js b/odoo_dynamic_dashboard/static/src/js/dynamic_dashboard_tile.js index b084e1008..f3d9d5b9e 100644 --- a/odoo_dynamic_dashboard/static/src/js/dynamic_dashboard_tile.js +++ b/odoo_dynamic_dashboard/static/src/js/dynamic_dashboard_tile.js @@ -9,6 +9,7 @@ export class DynamicDashboardTile extends Component { this.doAction = this.props.doAction.doAction; this.dialog = this.props.dialog; this.orm = this.props.orm; + } // Function to get the configuration of the tile async getConfiguration(ev){ @@ -42,7 +43,9 @@ export class DynamicDashboardTile extends Component { // Function for getting records by double click async getRecords(){ var model_name = this.props.widget.model_name; - if (model_name){ + this.saveLayout = document.getElementById("save_layout"); + this.displayValue = window.getComputedStyle(this.saveLayout).display; + if (model_name && this.displayValue=='none'){ await this.doAction({ type: 'ir.actions.act_window', res_model: model_name,