|
|
@ -7,10 +7,14 @@ var Widget = require('web.Widget'); |
|
|
|
|
|
|
|
var accountFinancialReportWidget = Widget.extend({ |
|
|
|
events: { |
|
|
|
'click .o_account_financial_reports_web_action': 'boundLink', |
|
|
|
'click .o_account_financial_reports_web_action_multi': 'boundLinkmulti', |
|
|
|
'click .o_account_financial_reports_web_action_monetary': 'boundLinkMonetary', |
|
|
|
'click .o_account_financial_reports_web_action_monetary_multi': 'boundLinkMonetarymulti', |
|
|
|
'click .o_account_financial_reports_web_action': |
|
|
|
'boundLink', |
|
|
|
'click .o_account_financial_reports_web_action_multi': |
|
|
|
'boundLinkmulti', |
|
|
|
'click .o_account_financial_reports_web_action_monetary': |
|
|
|
'boundLinkMonetary', |
|
|
|
'click .o_account_financial_reports_web_action_monetary_multi': |
|
|
|
'boundLinkMonetarymulti', |
|
|
|
}, |
|
|
|
init: function () { |
|
|
|
this._super.apply(this, arguments); |
|
|
@ -26,7 +30,7 @@ var accountFinancialReportWidget = Widget.extend({ |
|
|
|
res_model: res_model, |
|
|
|
res_id: res_id, |
|
|
|
views: [[false, 'form']], |
|
|
|
target: 'current' |
|
|
|
target: 'current', |
|
|
|
}); |
|
|
|
}, |
|
|
|
boundLinkmulti: function (e) { |
|
|
@ -37,7 +41,7 @@ var accountFinancialReportWidget = Widget.extend({ |
|
|
|
res_model: res_model, |
|
|
|
domain: domain, |
|
|
|
views: [[false, "list"], [false, "form"]], |
|
|
|
target: 'current' |
|
|
|
target: 'current', |
|
|
|
}); |
|
|
|
}, |
|
|
|
boundLinkMonetary: function (e) { |
|
|
@ -48,7 +52,7 @@ var accountFinancialReportWidget = Widget.extend({ |
|
|
|
res_model: res_model, |
|
|
|
res_id: res_id, |
|
|
|
views: [[false, 'form']], |
|
|
|
target: 'current' |
|
|
|
target: 'current', |
|
|
|
}); |
|
|
|
}, |
|
|
|
boundLinkMonetarymulti: function (e) { |
|
|
@ -59,7 +63,7 @@ var accountFinancialReportWidget = Widget.extend({ |
|
|
|
res_model: res_model, |
|
|
|
domain: domain, |
|
|
|
views: [[false, "list"], [false, "form"]], |
|
|
|
target: 'current' |
|
|
|
target: 'current', |
|
|
|
}); |
|
|
|
}, |
|
|
|
}); |
|
|
|