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