[FIX] web: correct url matching in tests

bzr revid: chs@openerp.com-20131114094624-588lvc9vunwa99d8
This commit is contained in:
Christophe Simonis 2013-11-14 10:46:24 +01:00
parent 193f1d2b26
commit b61997e716
1 changed files with 1 additions and 2 deletions

View File

@ -58,8 +58,7 @@ openerp.testing = {};
}
var fn, params;
var needle = rparams.model + ':' + rparams.method;
if (url.url === '/web/dataset/call_kw'
&& needle in this.responses) {
if (url.url.substr(0, 20) === '/web/dataset/call_kw' && needle in this.responses) {
fn = this.responses[needle];
params = [
rparams.args || [],