mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-26 08:32:07 +02:00
19.0 vanilla
This commit is contained in:
parent
a1137a1456
commit
e1d89e11e3
2789 changed files with 1093187 additions and 605897 deletions
|
|
@ -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')
|
||||
Loading…
Add table
Add a link
Reference in a new issue