[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:
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user