OdooMindscape. Understand Odoo faster. Explore modules, fields, dependencies and version differences in one place instead of digging through the source code.
if not self._has_livechat_field_access():
self.livechat_username = False
return
for user in self:
user.livechat_username = user.sudo().res_users_settings_id.livechat_username