From 592ee64f5182ef2c9b8220a838268d2d9a89b53d Mon Sep 17 00:00:00 2001 From: "Adrien Peiffer (ACSONE)" Date: Wed, 27 Jan 2016 11:18:03 +0100 Subject: [PATCH] [IMP][mis_builder] use get_context method in drilldown method --- mis_builder/static/src/js/mis_builder.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/mis_builder/static/src/js/mis_builder.js b/mis_builder/static/src/js/mis_builder.js index 24daa055..885f42b8 100644 --- a/mis_builder/static/src/js/mis_builder.js +++ b/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);