Source code for odoo_xmlrpc_twisted.functions.update_user_profile_values
"""Module updates the user profile values."""# call the function "get_settings_odoo" to get the parameters# for the logging of the model on the "odoo Webservice API"try:from.get_settings_odooimportget_settings_odooexceptImportError:fromget_settings_odooimportget_settings_odooresult=get_settings_odoo()db=result[0]uid=result[1]password=result[3]models=result[4]
[docs]defupdate_user_profile_values(user_id,login,email,name,title,language,phone_number,mobile_number):""" Functions updates the user profile values by using the model 'res.users' """result=Falseifuser_id!='':# update the user profile valuesresult=models.execute_kw(db,uid,password,'res.users','write',[[user_id],{'login':login,'email':email,'name':name,'title':title,'lang':language,'phone':phone_number,'mobile':mobile_number,}])return(result)