Browse Source

[IMP][mis_builder] use get_context method in drilldown method

pull/189/head
Adrien Peiffer (ACSONE) 9 years ago
committed by Stéphane Bidoul
parent
commit
592ee64f51
  1. 3
      mis_builder/static/src/js/mis_builder.js

3
mis_builder/static/src/js/mis_builder.js

@ -88,10 +88,11 @@ var MisReport = form_common.FormWidget.extend({
if (drilldown) {
var period_id = JSON.parse($(event.target).data("period-id"));
var val_c = JSON.parse($(event.target).data("expr"));
var context = new data.CompoundContext(self.build_context(), self.get_context()|| {})
new Model("mis.report.instance.period").call(
"drilldown",
[period_id, val_c],
{'context': new data.CompoundContext()}
{'context': context}
).then(function(result) {
if (result) {
self.do_action(result);

Loading…
Cancel
Save