Files
suite/hr_payroll_hibou/models/hr_salary_rule.py
Jared Kipe 5a13ad029f [ADD] hr_payroll_hibou: for Odoo Enterprise 14.0
Abstract fixes and behaviors.

- Adds configurable option for Payslip rule calculation sum date field.
- Fixes inconsistency between .sum_category('CODE') and .categories['CODE']
- Adds semi-monthly Semi-monthly schedule_pay

All features are tested and the tests themselves should serve as test harnesses for other 'payroll' modules.
2020-11-21 17:19:37 -08:00

20 lines
561 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'),
])