Community: Framework mailing list archives

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

Vauxoo S.A. de C.V., Nhomar Hernandez
- 04/23/2016 03:03:10

On Fri, Apr 22, 2016 at 9:10 AM, Anucha Petchagun <> wrote:
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.

Your QA is abosollutly right.

here a unit test that validates exactly wht you need.

Thank you for your help.


Nhomar Hernandez
CEO Vauxoo.
Twitter: @nhomar
Odoo Gold Partner
Skype: nhomar00 (Envia mail previo no lo superviso siempre).
Móvil Venezuela:
+58 4144110269
Móvil México:
+52 1 4773933942