From 7e8a5f7697dfc63360ecce55ac71f493a5bcd3ac Mon Sep 17 00:00:00 2001 From: Christophe Simonis Date: Tue, 3 Dec 2013 14:29:37 +0100 Subject: [PATCH] [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 --- addons/web/static/src/js/openerpframework.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/addons/web/static/src/js/openerpframework.js b/addons/web/static/src/js/openerpframework.js index 99d11b58ca9..ca046543861 100644 --- a/addons/web/static/src/js/openerpframework.js +++ b/addons/web/static/src/js/openerpframework.js @@ -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,