mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
MIG l10n_us_oh_hr_payroll to 12.0
This commit is contained in:
@@ -1,3 +1 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import models
|
||||
|
||||
@@ -1,11 +1,10 @@
|
||||
# -*- encoding: utf-8 -*-
|
||||
{
|
||||
'name': 'USA - Ohio - Payroll',
|
||||
'author': 'Hibou Corp. <hello@hibou.io>',
|
||||
'license': 'AGPL-3',
|
||||
'category': 'Localization',
|
||||
'depends': ['l10n_us_hr_payroll'],
|
||||
'version': '11.0.2019.0.0',
|
||||
'version': '12.0.2019.0.0',
|
||||
'description': """
|
||||
USA::Ohio Payroll Rules.
|
||||
========================
|
||||
|
||||
@@ -14,7 +14,7 @@
|
||||
<field name="amount_python_compute">
|
||||
###
|
||||
rate = payslip.dict.get_rate('US_OH_UNEMP')
|
||||
year = int(payslip.dict.date_to[:4])
|
||||
year = payslip.dict.date_to.year
|
||||
ytd = payslip.sum('WAGE_US_OH_UNEMP', str(year) + '-01-01', str(year+1) + '-01-01')
|
||||
ytd += contract.external_wages
|
||||
remaining = rate.wage_limit_year - ytd
|
||||
@@ -57,7 +57,7 @@ if result_rate == 0.0:
|
||||
<field name="condition_python">result = True</field>
|
||||
<field name="amount_select">code</field>
|
||||
<field name="amount_python_compute">
|
||||
year = int(payslip.dict.date_to[:4])
|
||||
year = payslip.dict.date_to.year
|
||||
wages = categories.GROSS
|
||||
allowances = contract.oh_income_allowances
|
||||
schedule_pay = contract.schedule_pay
|
||||
|
||||
@@ -1,4 +1,2 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from . import test_us_oh_payslip_2018
|
||||
from . import test_us_oh_payslip_2019
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo.addons.l10n_us_hr_payroll.tests.test_us_payslip import TestUsPayslip, process_payslip
|
||||
from odoo.addons.l10n_us_hr_payroll.models.l10n_us_hr_payroll import USHrContract
|
||||
|
||||
|
||||
@@ -1,5 +1,3 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo.addons.l10n_us_hr_payroll.tests.test_us_payslip import TestUsPayslip, process_payslip
|
||||
from odoo.addons.l10n_us_hr_payroll.models.l10n_us_hr_payroll import USHrContract
|
||||
|
||||
|
||||
Reference in New Issue
Block a user