odoo_xmlrpc_twisted.Twisted

Interface between the mobile apps, websites, client systems, partners and the Python modules of the Odoo system.

See Architecture Diagram for more information on how Twisted is integrated into the core model.

Classes

custom_functions([allowNone, useDateTime])

The following functions serve the interfaces between the Odoo system and the mobile apps, websites, client systems and the partners.

class odoo_xmlrpc_twisted.Twisted.custom_functions(allowNone=False, useDateTime=False)[source]

Bases: XMLRPC

The following functions serve the interfaces between the Odoo system and the mobile apps, websites, client systems and the partners.

xmlrpc_change_password(custom_login, custom_password)[source]

odoo_xmlrpc_twisted.functions.change_password.change_password() changes the password of a user.

xmlrpc_check_user_login(custom_login, custom_password)[source]

odoo_xmlrpc_twisted.functions.check_user_login.check_user_login() validates if login and password are correct.

xmlrpc_count_product_place(custom_partner_id, custom_x_place)[source]

odoo_xmlrpc_twisted.functions.count_product_place.count_product_place() gets the number of products of a partner belonging to a dedicated place.

xmlrpc_create_activatetoken(custom_login)[source]

odoo_xmlrpc_twisted.functions.create_activatetoken.create_activatetoken() sets the user during the user activation to active.

xmlrpc_create_dummy_product(custom_partner_id)[source]

odoo_xmlrpc_twisted.functions.create_dummy_product.create_dummy_product() creates a new initial (= dummy) product in Odoo.

xmlrpc_create_order(custom_product_id, custom_transfer)[source]

odoo_xmlrpc_twisted.functions.create_order.create_order() creates the stock move and other records when an object moves from one place to another.

xmlrpc_create_product(custom_partner_id, object_images, object_volume, object_weight)[source]

odoo_xmlrpc_twisted.functions.create_product.create_product() creates a new product in Odoo.

xmlrpc_create_resettoken(custom_login)[source]

odoo_xmlrpc_twisted.functions.create_resettoken.create_resettoken() sets the “activate” fields in the “res.users” table during the activation of a user.

xmlrpc_create_user(custom_name, custom_login, custom_email, custom_password)[source]

odoo_xmlrpc_twisted.functions.create_user.create_user() creates a new user in Odoo.

xmlrpc_email_exist(custom_email)[source]

odoo_xmlrpc_twisted.functions.email_exist.email_exist() checks if a user with that e-mail already exists.

xmlrpc_get_available_countries()[source]

odoo_xmlrpc_twisted.functions.get_available_countries.get_available_countries() gets all available countries from Odoo.

xmlrpc_get_available_states(custom_country, custom_language_code)[source]

odoo_xmlrpc_twisted.functions.get_available_states.get_available_states() gets all available countries from Odoo.

xmlrpc_get_credentials(custom_login)[source]

odoo_xmlrpc_twisted.functions.get_credentials.get_credentials() gets the user credentials of a dedicated user.

xmlrpc_get_installed_languages()[source]

odoo_xmlrpc_twisted.functions.get_installed_languages.get_installed_languages() gets all installed languages from Odoo.

xmlrpc_get_installed_user_titles(custom_language_code)[source]

odoo_xmlrpc_twisted.functions.get_installed_user_titles.get_installed_user_titles() gets all installed user title for a specific language from Odoo.

xmlrpc_get_language(custom_partner_id)[source]

odoo_xmlrpc_twisted.functions.get_language.get_language() gets the language of the partner.

xmlrpc_get_picture_string(custom_product_id, custom_res_field, custom_name)[source]

odoo_xmlrpc_twisted.functions.get_picture_string.get_picture_string() gets the picture in form of a data string from a specific product.

xmlrpc_get_product(custom_product_id)[source]

odoo_xmlrpc_twisted.functions.get_product.get_product() gets a specific product with the details.

xmlrpc_get_product_list(custom_partner_id, custom_place)[source]

odoo_xmlrpc_twisted.functions.get_product_list.get_product_list() gets all products from a user.

xmlrpc_get_product_place_list(custom_partner_id, custom_x_place)[source]

odoo_xmlrpc_twisted.functions.get_product_place_list.get_product_place_list() gets a list of all products belonging to the specified user and place.

xmlrpc_get_user_address_values(custom_partner_id, custom_country_code, custom_user_language_code)[source]

odoo_xmlrpc_twisted.functions.get_user_address_values.get_user_address_values() gets the user address values.

xmlrpc_get_user_profile_values(custom_user_id)[source]

odoo_xmlrpc_twisted.functions.get_user_profile_values.get_user_profile_values() gets the user profile values.

xmlrpc_login_exist(custom_login)[source]

odoo_xmlrpc_twisted.functions.login_exist.login_exist() checks if a user with that login already exists.

xmlrpc_name_exist(custom_name)[source]

odoo_xmlrpc_twisted.functions.name_exist.name_exist() checks if a user with that name already exists.

xmlrpc_save_picture(custom_product_id, custom_datas)[source]

odoo_xmlrpc_twisted.functions.save_picture.save_picture() saves the picture of a product.

xmlrpc_test_activatetoken(custom_activate_token)[source]

odoo_xmlrpc_twisted.functions.test_activatetoken.test_activatetoken() tests if a user with the “x_activate_token” does exist.

xmlrpc_test_odoo_connection()[source]

odoo_xmlrpc_twisted.functions.test_odoo_connection.test_odoo_connection() tests if the connection to odoo works.

xmlrpc_test_odoo_xmlrpc_server()[source]

odoo_xmlrpc_twisted.functions.test_odoo_xmlrpc_server.test_odoo_xmlrpc_server() tests if the XML-RPC server from Odoo system is running.

xmlrpc_test_resettoken(custom_reset_token)[source]

odoo_xmlrpc_twisted.functions.test_resettoken.test_resettoken() tests if a user with the “x_reset_token” does exist.

xmlrpc_update_activatetoken(custom_activate_token)[source]

odoo_xmlrpc_twisted.functions.update_activatetoken.update_activatetoken() updates the res_users record so that the token could no longer be used.

xmlrpc_update_product(custom_product_id, custom_name, custom_description)[source]

odoo_xmlrpc_twisted.functions.update_product.update_product() updates a product in Odoo with the values “Name” and “Description”.

xmlrpc_update_resettoken(custom_reset_token)[source]

odoo_xmlrpc_twisted.functions.update_resettoken.update_resettoken() updates the res_users record so that the token could no longer be used.

xmlrpc_update_user_address_values(custom_partner_id, custom_type, custom_street, custom_street_2, custom_zip, custom_city, custom_state, custom_country)[source]

odoo_xmlrpc_twisted.functions.update_user_address_values.update_user_address_values() updates the user address values.

xmlrpc_update_user_profile_values(custom_user_id, custom_login, custom_email, custom_name, custom_title, custom_language, custom_phone_number, custom_mobile_number)[source]

odoo_xmlrpc_twisted.functions.update_user_profile_values.update_user_profile_values() updates the user profile values.