mirror of
https://github.com/bringout/oca-hr.git
synced 2026-04-26 07:32:05 +02:00
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>
27 lines
875 B
Python
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",
|
|
)
|