mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
27 lines
797 B
Python
27 lines
797 B
Python
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
|
|
|
|
from odoo import fields, models
|
|
|
|
|
|
class HrPayrollStructure(models.Model):
|
|
_inherit = 'hr.payroll.structure'
|
|
|
|
schedule_pay = fields.Selection(selection_add=[
|
|
('semi-monthly', 'Semi-monthly'),
|
|
], ondelete={'semi-monthly': 'set null'})
|
|
|
|
|
|
class HrPayrollStructureType(models.Model):
|
|
_inherit = 'hr.payroll.structure.type'
|
|
|
|
default_schedule_pay = fields.Selection(selection_add=[
|
|
('semi-monthly', 'Semi-monthly'),
|
|
])
|
|
|
|
|
|
class HrRuleParameter(models.Model):
|
|
_inherit = 'hr.rule.parameter'
|
|
|
|
update_locked = fields.Boolean(string='Update Lock',
|
|
help='Lock parameter to prevent updating rates from publisher.')
|