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_lang_ids = False
return
for user in self:
user.livechat_lang_ids = user.sudo().res_users_settings_id.livechat_lang_ids