[FIX] web: correct url matching in tests
bzr revid: chs@openerp.com-20131114094624-588lvc9vunwa99d8
This commit is contained in:
parent
193f1d2b26
commit
b61997e716
|
@ -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 || [],
|
||||
|
|
Loading…
Reference in New Issue