oca-hr/odoo-bringout-oca-hr-hr_employee_id/hr_employee_id/models/res_company.py
Ernad Husremovic dfcda4100c 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>
2025-08-30 17:11:28 +02:00

27 lines
875 B
Python

# Copyright 2015 Salton Massally <smassally@idtlabs.sl>
# Copyright 2016 OpenSynergy Indonesia
# Copyright 2018 Brainbean Apps (https://brainbeanapps.com)
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from odoo import fields, models
class ResCompany(models.Model):
_inherit = "res.company"
employee_id_gen_method = fields.Selection(
selection=[
("random", "Random"),
("sequence", "Sequence"),
],
string="Generation Method",
default="random",
)
employee_id_random_digits = fields.Integer(
string="# of Digits", default=5, help="Number of digits in employee identifier"
)
employee_id_sequence = fields.Many2one(
comodel_name="ir.sequence",
string="Identifier Sequence",
help="Pattern to be used for employee identifier generation",
)