odoo.define('account_financial_report.account_financial_report_widget', function (require) { 'use strict'; var core = require('web.core'); var Widget = require('web.Widget'); var QWeb = core.qweb; var _t = core._t; var accountFinancialReportWidget = Widget.extend({ events: { 'click .o_account_financial_reports_web_action': 'boundLink', }, init: function(parent) { this._super.apply(this, arguments); }, start: function() { return this._super.apply(this, arguments); }, boundLink: function(e) { var res_model = $(e.target).data('res-model') var res_id = $(e.target).data('active-id') return this.do_action({ type: 'ir.actions.act_window', res_model: res_model, res_id: res_id, views: [[false, 'form']], target: 'current' }); }, }); return accountFinancialReportWidget; });