19.0 vanilla

This commit is contained in:
Ernad Husremovic 2026-03-09 09:31:00 +01:00
parent a1137a1456
commit e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions

View file

@ -0,0 +1,14 @@
from odoo import fields, models
class HrEmployeePublic(models.Model):
_inherit = "hr.employee.public"
badge_ids = fields.One2many('gamification.badge.user', readonly=True, compute='_compute_badge_ids')
has_badges = fields.Boolean(compute='_compute_has_badges')
def _compute_has_badges(self):
self._compute_from_employee('has_badges')
def _compute_badge_ids(self):
self._compute_from_employee('badge_ids')