Initial commit: OCA Technical packages (595 packages)

This commit is contained in:
Ernad Husremovic 2025-08-29 15:43:03 +02:00
commit 2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions

View file

@ -0,0 +1,4 @@
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from . import hr_employee_language
from . import hr_employee

View file

@ -0,0 +1,15 @@
# Copyright (C) 2017-Today: Odoo Community Association (OCA)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class HrEmployee(models.Model):
_inherit = "hr.employee"
language_ids = fields.One2many(
"hr.employee.language",
"employee_id",
string="Languages",
help="Languages of this employee",
)

View file

@ -0,0 +1,17 @@
# Copyright (C) 2017-Today: Odoo Community Association (OCA)
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl.html).
from odoo import fields, models, tools
class HrEmployeeLanguage(models.Model):
_name = "hr.employee.language"
_description = "HR Employee Language"
name = fields.Selection(tools.scan_languages(), string="Language", required=True)
description = fields.Char()
employee_id = fields.Many2one("hr.employee", string="Employee", required=True)
can_read = fields.Boolean(string="Read", default=True)
can_write = fields.Boolean(string="Write", default=True)
can_speak = fields.Boolean(string="Speak", default=True)
can_listen = fields.Boolean(string="Listen", default=True)