[IMP] help debugging xhr calls

bzr revid: chs@openerp.com-20121012130140-qgi8ret2oxoeko6d
This commit is contained in:
Christophe Simonis 2012-10-12 15:01:40 +02:00
parent e70d879acc
commit 40d2a376ca
1 changed files with 2 additions and 1 deletions

View File

@ -280,7 +280,8 @@ instance.web.Model = instance.web.Class.extend({
kwargs = args;
args = [];
}
return instance.session.rpc('/web/dataset/call_kw', {
var debug = instance.session.debug ? '/'+this.name+':'+method : '';
return instance.session.rpc('/web/dataset/call_kw' + debug, {
model: this.name,
method: method,
args: args,