mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-23 16:12:09 +02:00
Initial commit: OCA Technical packages (595 packages)
This commit is contained in:
commit
2cc02aac6e
24950 changed files with 2318079 additions and 0 deletions
|
|
@ -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
|
||||
|
|
@ -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",
|
||||
)
|
||||
|
|
@ -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)
|
||||
Loading…
Add table
Add a link
Reference in a new issue