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

Module: HR Gamification

Entity: gamification.badge.user

Compute Method: _compute_has_edit_delete_access

View 19.0
Inputs Method Outputs
  • create_uid
  • create_uid.id
+ is_hr_user = self.env.user.has_group('hr.group_hr_user')
+ for badge_user in self:
+             badge_user.has_edit_delete_access = is_hr_user or self.env.uid == self.create_uid.id
  • has_edit_delete_access

Back to entity