mirror of
https://github.com/bringout/oca-hr.git
synced 2026-04-25 15:32:04 +02:00
Move all OCA HR modules from oca-technical to dedicated oca-hr submodule
Reorganized 67 HR-related modules for better structure: - Moved all odoo-bringout-oca-hr-* packages from packages/oca-technical/ - Now organized in dedicated packages/oca-hr/ submodule - Includes attendance, expense, holiday, employee, and contract modules - Maintains all module functionality while improving project organization This creates a cleaner separation between general technical modules and HR-specific functionality. 🤖 Generated with [Claude Code](https://claude.ai/code) Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
parent
f672249949
commit
dfcda4100c
2456 changed files with 120722 additions and 0 deletions
|
|
@ -0,0 +1,2 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
from . import test_hr_employee
|
||||
|
|
@ -0,0 +1,18 @@
|
|||
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
|
||||
from dateutil.relativedelta import relativedelta
|
||||
|
||||
from odoo import fields
|
||||
from odoo.tests import common
|
||||
|
||||
|
||||
class TestHrEmployee(common.TransactionCase):
|
||||
def setUp(self):
|
||||
super().setUp()
|
||||
self.employee_admin = self.env.ref("hr.employee_admin")
|
||||
self.employee_admin.write({"birthday": "1990-05-15"})
|
||||
|
||||
def test_compute_age(self):
|
||||
self.employee_admin._compute_age()
|
||||
age = relativedelta(fields.Date.today(), self.employee_admin.birthday).years
|
||||
self.assertEqual(self.employee_admin.age, age)
|
||||
Loading…
Add table
Add a link
Reference in a new issue