[IMP] website: Improve test robustness

Purpose
=======

A lot a demo data are added in enterprise for the Belgian company.

It implies for example a private address for a Belgian employee for
Mitchell Admin.

This commit improves the test to work even with this new demo data.

closes odoo/odoo#37088

Signed-off-by: Yannick Tivisse (yti) <yti@odoo.com>
This commit is contained in:
Yannick Tivisse
2019-09-23 09:03:44 +00:00
parent dea1add336
commit 5cc0c447aa
@@ -46,7 +46,7 @@ tour.register('website_reset_password', {
var def3 = rpc.query({
model: 'res.partner',
method: 'name_search',
kwargs: {'name': 'Mitchell Admin'},
kwargs: {'name': 'Mitchell Admin', 'args': [['company_id', '=', 1]]},
}).then(function (res) {
return rpc.query({
'model': 'res.partner',