odoo_xmlrpc_twisted.functions.create_user¶
Create a new user in Odoo for a customer.
Functions
|
Function creates a "res.users" record to store in the odoo ERP system database. |
- odoo_xmlrpc_twisted.functions.create_user.create_user(name, login, email, password)[source]¶
Function creates a “res.users” record to store in the odoo ERP system database. Together with the user record a corresponding “res_partner” record is created. The user will be created as a “Portal User” (“share” = “True”).
- Returns:
- (result, user_id, partner_id) where:
result (str): ‘True’ if successful, ‘False’ if failed
user_id (int or None): ID of created user, None if failed
partner_id (int or None): ID of created partner, None if failed
- Return type: