odoo_xmlrpc_twisted.support.support_create_user

Supporting program to test the module odoo_xmlrpc_twisted.functions.create_user().

Functions

support_create_user(custom_name, ...)

Function to test the module "create_user".

odoo_xmlrpc_twisted.support.support_create_user.support_create_user(custom_name, custom_login, custom_email, custom_password)[source]

Function to test the module “create_user”. As a prerequisite, it will be checked if the dedicated user already exist. If yes, the user will be deleted in the tables ‘res.users’ and ‘res.partner’.

Then the function ‘create_user’ will be called to test if a new dedicated user could be created.

Returns:

(result, user_id, partner_id) where:
  • result: ‘True’ if user created successfully, ‘False’ otherwise

  • user_id: ID of the created user in res.users table

  • partner_id: ID of the created partner in res.partner table

Return type:

tuple