Community: Framework mailing list archives

expert-framework@mail.odoo.com

Re: Create 'res.users' with password in unites

by
Simon ANDRÉ
- 04/22/2016 12:05:28
Hello,

May you just have to use function field res_users.new_password.

Like:
{'login': 'test', 'email': 'test@domain.fr', 'new_password': 'azerty'}

Unittesting is the only one good way to have maintainable application .

Have a nice evening !

2016-04-22 16:10 GMT+02:00 Anucha Petchagun <corelmax@gmail.com>:
I've tried to create 'res.users' with password for unit testing by passing name, login and password to method 'create' and try to logging in with method '_login' with same login and password but it return nothing.

Anyway, it work on other place and my developing module work fine. but, my QA preferred to have unit testing.

Thank you for your help.

--

Regards you.
Anucha Petchagun (Big)

Freelance Web Developer.
Freelance Photographer.

Feel free to contact me.

_______________________________________________
Mailing-List: https://www.odoo.com/groups/community-framework-62
Post to: mailto:expert-framework@mail.odoo.com
Unsubscribe: https://www.odoo.com/groups?unsubscribe




--
Simon ANDRÉ
tel: 0781876866
twitter: @_get_sandre