[fix] problem in reports
bzr revid: nicolas.vanhoren@openerp.com-20110915131201-c9j9y7gy4ludsxtp
This commit is contained in:
parent
692cb79400
commit
716632b80c
|
@ -133,11 +133,19 @@ db.web.ActionManager = db.web.Widget.extend({
|
||||||
(this.client_widget = new ClientWidget(this, action.params)).appendTo(this);
|
(this.client_widget = new ClientWidget(this, action.params)).appendTo(this);
|
||||||
},
|
},
|
||||||
ir_actions_report_xml: function(action) {
|
ir_actions_report_xml: function(action) {
|
||||||
|
var self = this;
|
||||||
$.blockUI();
|
$.blockUI();
|
||||||
this.session.get_file({
|
self.rpc("/web/session/eval_domain_and_context", {
|
||||||
url: '/web/report',
|
contexts: [action.context],
|
||||||
data: {action: JSON.stringify(action)},
|
domains: []
|
||||||
complete: $.unblockUI
|
}).then(function(res) {
|
||||||
|
action = _.clone(action);
|
||||||
|
action.context = res.context;
|
||||||
|
self.session.get_file({
|
||||||
|
url: '/web/report',
|
||||||
|
data: {action: JSON.stringify(action)},
|
||||||
|
complete: $.unblockUI
|
||||||
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
Loading…
Reference in New Issue