From b0c4d6d4f18e9d7f50b280b49ef7317863c31078 Mon Sep 17 00:00:00 2001 From: AjmalCybro Date: Wed, 5 Mar 2025 11:58:38 +0530 Subject: [PATCH] Mar 5 [UPDT] : Updated 'odoo_dynamic_dashboard' --- .../static/src/js/dynamic_dashboard_tile.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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,