mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-27 14:12:04 +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,24 @@
|
|||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class HrJobSkill(models.Model):
|
||||
_name = "hr.job.skill"
|
||||
_inherit = "hr.individual.skill.mixin"
|
||||
_description = "Skills for job positions"
|
||||
_order = "skill_type_id, skill_level_id desc"
|
||||
_rec_name = "skill_id"
|
||||
|
||||
job_id = fields.Many2one(
|
||||
comodel_name="hr.job",
|
||||
required=True,
|
||||
index=True,
|
||||
ondelete="cascade",
|
||||
)
|
||||
|
||||
def _linked_field_name(self):
|
||||
return "job_id"
|
||||
|
||||
def _can_edit_certification_validity_period(self):
|
||||
return False
|
||||
Loading…
Add table
Add a link
Reference in a new issue