[FIX] web: openerpframework.js: do not use _.str

openerpframework.js can be used as standalone library (im_livechat uses
it this way) and do not depend on underscore.string.js

bzr revid: chs@openerp.com-20131203132937-ss7hx1gligzai5ch
This commit is contained in:
Christophe Simonis
2013-12-03 14:29:37 +01:00
parent 64c0ff21d5
commit 7e8a5f7697
+1 -1
View File
@@ -1128,7 +1128,7 @@ openerp.Model = openerp.Class.extend({
kwargs = args;
args = [];
}
var call_kw = _.str.sprintf('/web/dataset/call_kw/%s/%s', this.name, method);
var call_kw = '/web/dataset/call_kw/' + this.name + '/' + method;
return this.session().rpc(call_kw, {
model: this.name,
method: method,