During tests, some creation of user records would unnecessarily trigger password reset or set a password, both of which would trigger password hashing which takes some time (for good reasons). Fix by: * passing no_reset_password in YAML tests and some Python tests still missing it (a number of Python tests already used it) * removing passwords from YAML records as they're never necessary, the test user records are not expected to ever log in
30 lines
730 B
YAML
30 lines
730 B
YAML
-
|
|
Create a user as 'MRP Manager'
|
|
-
|
|
!record {model: res.users, id: res_users_mrp_manager, view: False}:
|
|
company_id: base.main_company
|
|
name: MRP Manager
|
|
login: mam
|
|
email: mrp_manager@yourcompany.com
|
|
-
|
|
I added groups for MRP Manager.
|
|
-
|
|
!record {model: res.users, id: res_users_mrp_manager}:
|
|
groups_id:
|
|
- mrp.group_mrp_manager
|
|
- account.group_account_user
|
|
-
|
|
Create a user as 'MRP User'
|
|
-
|
|
!record {model: res.users, id: res_users_mrp_user, view: False}:
|
|
company_id: base.main_company
|
|
name: MRP User
|
|
login: mau
|
|
email: mrp_user@yourcompany.com
|
|
-
|
|
I added groups for MRP User.
|
|
-
|
|
!record {model: res.users, id: res_users_mrp_user}:
|
|
groups_id:
|
|
- mrp.group_mrp_user
|