mirror of
https://github.com/bringout/oca-ocb-hr.git
synced 2026-04-25 00:32:01 +02:00
Initial commit: Hr packages
This commit is contained in:
commit
62531cd146
2820 changed files with 1432848 additions and 0 deletions
14
odoo-bringout-oca-ocb-hr/hr/models/resource.py
Normal file
14
odoo-bringout-oca-ocb-hr/hr/models/resource.py
Normal file
|
|
@ -0,0 +1,14 @@
|
|||
# -*- coding: utf-8 -*-
|
||||
# Part of Odoo. See LICENSE file for full copyright and licensing details.
|
||||
from pytz import utc, timezone
|
||||
from datetime import datetime
|
||||
|
||||
from odoo import fields, models
|
||||
from odoo.addons.resource.models.resource import Intervals
|
||||
|
||||
|
||||
class ResourceResource(models.Model):
|
||||
_inherit = "resource.resource"
|
||||
|
||||
user_id = fields.Many2one(copy=False)
|
||||
employee_id = fields.One2many('hr.employee', 'resource_id', domain="[('company_id', '=', company_id)]")
|
||||
Loading…
Add table
Add a link
Reference in a new issue