oca-technical/odoo-bringout-oca-hack-payroll/payroll/models/res_config_settings.py
2025-08-29 15:43:03 +02:00

20 lines
775 B
Python

# Part of Odoo. See LICENSE file for full copyright and licensing details.
from odoo import fields, models
class ResConfigSettings(models.TransientModel):
_inherit = "res.config.settings"
module_payroll_account = fields.Boolean(string="Payroll Accounting")
leaves_positive = fields.Boolean(
config_parameter="payroll.leaves_positive",
string="Leaves with positive values",
help="Values for leaves (days and hours fields) "
"should be positive instead of negative.",
)
allow_cancel_payslips = fields.Boolean(
config_parameter="payroll.allow_cancel_payslips",
string="Allow cancel confirmed payslips",
help="If enabled, it allow the user to cancel confirmed payslips. Default: Not Enabled",
)