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

Module: User roles

Entity: res.users

Compute Method: _compute_show_alert

Inputs Method Outputs
for user in self:
            user.show_alert = user.role_line_ids.filtered(lambda rec: rec.is_enabled)

Back to entity