Browse Source

Mar 5 [UPDT] : Updated 'odoo_dynamic_dashboard'

pull/317/merge
AjmalCybro 2 months ago
parent
commit
b0c4d6d4f1
  1. 5
      odoo_dynamic_dashboard/static/src/js/dynamic_dashboard_tile.js

5
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,

Loading…
Cancel
Save