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

Module: Technical features group

Entity: res.users

Compute Method: _compute_technical_features

View 17.0 View 19.0
Inputs Method Outputs
- """Map user membership to boolean field value"""
- users = self.env.ref("base_technical_features.group_technical_features").users
for user in self:
-             user.technical_features = user in users
+             user.technical_features = user.has_group(
+                 "base_technical_features.group_technical_features"
+             )
  • technical_features

Back to entity