[ADD]hr_employee_stats_sheet
This commit is contained in:
29
hr_employee_stats_sheet/models/res_config.py
Normal file
29
hr_employee_stats_sheet/models/res_config.py
Normal file
@@ -0,0 +1,29 @@
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResConfigSettings(models.TransientModel):
|
||||
_inherit = "res.config.settings"
|
||||
|
||||
recovery_type_id = fields.Many2one(
|
||||
"hr.leave.type",
|
||||
related="company_id.recovery_type_id",
|
||||
string="Leave recovery type",
|
||||
readonly=False,
|
||||
domain="[('request_unit', '=', 'hour'), ('allows_negative', '=', True)]",
|
||||
)
|
||||
|
||||
coef = fields.Float(
|
||||
related="company_id.coef",
|
||||
required=True,
|
||||
string="Coef (in %)",
|
||||
domain="[('company_id', '=', company_id)]",
|
||||
readonly=False,
|
||||
help="The coef is applied to recovery hours"
|
||||
"Example : an employe make 1h overtime, if coef is set to 25%, the recovery hours allocated will be 1,25h",
|
||||
)
|
||||
|
||||
auto_validate_recovery_allocation = fields.Boolean(
|
||||
related="company_id.auto_validate_recovery_allocation",
|
||||
readonly=False,
|
||||
domain="[('company_id', '=', company_id)]",
|
||||
)
|
Reference in New Issue
Block a user