Skip to content

Commit

Permalink
Merge pull request #69 from kmee/hr-wip
Browse files Browse the repository at this point in the history
Hr wip
  • Loading branch information
mileo authored Nov 27, 2024
2 parents 365cf3e + dd6c1ca commit b37adb8
Show file tree
Hide file tree
Showing 46 changed files with 1,576 additions and 0 deletions.
1 change: 1 addition & 0 deletions hr_holidays_allocation_plan/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
from . import models
21 changes: 21 additions & 0 deletions hr_holidays_allocation_plan/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright 2024 KMEE
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

{
"name": "Hr Holidays Allocation Plan",
"version": "16.0.1.0.0",
"license": "AGPL-3",
"author": "KMEE,Odoo Community Association (OCA)",
"website": "https://github.com/KMEE/kmee-odoo-addons",
"depends": [
"hr_holidays",
"hr_contract",
],
"maintainers": ["mileo"],
"development_status": "Beta",
"data": [
"views/hr_employee.xml",
"views/hr_leave_allocation.xml",
"security/ir.model.access.csv",
],
}
2 changes: 2 additions & 0 deletions hr_holidays_allocation_plan/models/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
from . import hr_leave_allocation
from . import hr_employee
16 changes: 16 additions & 0 deletions hr_holidays_allocation_plan/models/hr_employee.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
# Copyright 2024 KMEE
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl).

from odoo import fields, models


class HrEmployee(models.Model):

_inherit = "hr.employee"

plan_allocation_ids = fields.Many2many(
"hr.leave.allocation",
relation="hr_allocation_employee_rel",
column1="employee_id",
column2="allocation_id",
)
Loading

0 comments on commit b37adb8

Please sign in to comment.