[IMP][mis_builder] use get_context method in drilldown method
parent
7ed1806781
commit
d904ea7ba3
|
@ -77,10 +77,11 @@ openerp.mis_builder = function(instance) {
|
||||||
if (drilldown) {
|
if (drilldown) {
|
||||||
var period_id = JSON.parse($(event.target).data("period-id"));
|
var period_id = JSON.parse($(event.target).data("period-id"));
|
||||||
var val_c = JSON.parse($(event.target).data("expr"));
|
var val_c = JSON.parse($(event.target).data("expr"));
|
||||||
|
context = new instance.web.CompoundContext(self.build_context(), self.get_context()|| {})
|
||||||
new instance.web.Model("mis.report.instance.period").call(
|
new instance.web.Model("mis.report.instance.period").call(
|
||||||
"drilldown",
|
"drilldown",
|
||||||
[period_id, val_c],
|
[period_id, val_c],
|
||||||
{'context': new instance.web.CompoundContext()}
|
{'context': context}
|
||||||
).then(function(result) {
|
).then(function(result) {
|
||||||
if (result) {
|
if (result) {
|
||||||
self.do_action(result);
|
self.do_action(result);
|
||||||
|
|
Loading…
Reference in New Issue