From d4ee0f72e7728d2a55f2445c667219bd0cb15702 Mon Sep 17 00:00:00 2001 From: Jared Kipe Date: Tue, 10 May 2022 20:58:14 +0000 Subject: [PATCH] [REF] l10n_us_hr_payroll: move pay periods to hr_payroll_hibou --- l10n_us_hr_payroll/models/hr_payslip.py | 16 ---------------- 1 file changed, 16 deletions(-) diff --git a/l10n_us_hr_payroll/models/hr_payslip.py b/l10n_us_hr_payroll/models/hr_payslip.py index 8f8b9422..ee0e1378 100644 --- a/l10n_us_hr_payroll/models/hr_payslip.py +++ b/l10n_us_hr_payroll/models/hr_payslip.py @@ -57,19 +57,6 @@ from .state.wv_west_virginia import wv_west_virginia_state_income_withholding class HRPayslip(models.Model): _inherit = 'hr.payslip' - # From IRS Publication 15-T or logically (annually, bi-monthly) - PAY_PERIODS_IN_YEAR = { - 'annually': 1, - 'semi-annually': 2, - 'quarterly': 4, - 'bi-monthly': 6, - 'monthly': 12, - 'semi-monthly': 24, - 'bi-weekly': 26, - 'weekly': 52, - 'daily': 260, - } - def _get_base_local_dict(self): res = super()._get_base_local_dict() res.update({ @@ -125,6 +112,3 @@ class HRPayslip(models.Model): 'wv_west_virginia_state_income_withholding': wv_west_virginia_state_income_withholding, }) return res - - def get_pay_periods_in_year(self): - return self.PAY_PERIODS_IN_YEAR.get(self.contract_id.schedule_pay, 0)