mirror of
https://github.com/bringout/oca-technical.git
synced 2026-04-18 09:32:07 +02:00
20 lines
775 B
Python
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",
|
|
)
|