mirror of
https://github.com/bringout/oca-hr.git
synced 2026-04-27 02:12:03 +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,29 @@
|
|||
from odoo import SUPERUSER_ID
|
||||
from odoo.api import Environment
|
||||
|
||||
|
||||
def post_init_hook(cr, _):
|
||||
# This SQL statement is necessary to call _install_employee_lastnames() and
|
||||
# set name fields correctly.
|
||||
#
|
||||
# After the installation, previously the dependency hr_employee_firstname
|
||||
# splitting the name into two parts: firstname and lastname, so for this
|
||||
# module to be able to process the new field lastmane2 it is necessary to
|
||||
# reset the values to empty to be able to correctly set the three fields
|
||||
# (firstname, lastname and lastname2).
|
||||
#
|
||||
# For example:
|
||||
# After install hr_employee_fisrtname and before install hr_employee_lastnames:
|
||||
# name = 'John Peterson Clinton'
|
||||
# firstname = 'John'
|
||||
# lastname = 'Peterson Clinton'
|
||||
#
|
||||
# After install hr_employee_lastnames:
|
||||
# name = 'John Peterson Clinton'
|
||||
# firstname = 'John'
|
||||
# lastname = 'Peterson'
|
||||
# lastname2 = 'Clinton'
|
||||
cr.execute("UPDATE hr_employee SET firstname = NULL, lastname = NULL")
|
||||
env = Environment(cr, SUPERUSER_ID, {})
|
||||
env["hr.employee"]._install_employee_lastnames()
|
||||
env["ir.config_parameter"].sudo().set_param("employee_names_order", "first_last")
|
||||
Loading…
Add table
Add a link
Reference in a new issue