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

Module: Signup

Entity: res.users

Compute Method: _compute_state

View 19.0 View 20.0
Inputs Method Outputs
  • login_date
  • active
for user in self:
-             user.state = 'active' if user.login_date else 'new'
+             user.state = 'inactive' if not user.active else 'active' if user.login_date else 'new'
  • state

Back to entity