Odoo Mindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.

Module: Live Chat

Entity: res.users

Compute Method: _compute_livechat_username

View 17.0 View 19.0
Inputs Method Outputs
  • res_users_settings_id
  • res_users_settings_id.livechat_username
for user in self:
-             user.livechat_username = user.res_users_settings_id.livechat_username
+             # sudo: livechat user can see the livechat username of any other user
+             user.livechat_username = user.sudo().res_users_settings_id.livechat_username
  • livechat_username

Back to entity