Browse Source

[IMP] Propagate context in drilldown method

pull/232/head
Adrien Peiffer (ACSONE) 8 years ago
parent
commit
eb908773b1
  1. 4
      mis_builder/static/src/js/mis_builder.js

4
mis_builder/static/src/js/mis_builder.js

@ -130,11 +130,13 @@ var MisReport = form_common.FormWidget.extend({
drilldown: function(event) {
var self = this;
var context = new data.CompoundContext(self.build_context(), self.get_context()|| {});
var drilldown = $(event.target).data("drilldown");
if (drilldown) {
new Model("mis.report.instance").call(
"drilldown",
[self.mis_report_instance_id, drilldown]
[self.mis_report_instance_id, drilldown],
{'context': context}
).then(function(result) {
if (result) {
self.do_action(result);

Loading…
Cancel
Save