mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
IMP l10n_us_hr_payroll for New Hampshire 12.0
This commit is contained in:
@@ -48,6 +48,7 @@ USA Payroll Rules.
|
|||||||
'data/state/ms_mississippi.xml',
|
'data/state/ms_mississippi.xml',
|
||||||
'data/state/mt_montana.xml',
|
'data/state/mt_montana.xml',
|
||||||
'data/state/nc_northcarolina.xml',
|
'data/state/nc_northcarolina.xml',
|
||||||
|
'data/state/nh_new_hampshire.xml',
|
||||||
'data/state/nj_newjersey.xml',
|
'data/state/nj_newjersey.xml',
|
||||||
'data/state/nm_new_mexico.xml',
|
'data/state/nm_new_mexico.xml',
|
||||||
'data/state/oh_ohio.xml',
|
'data/state/oh_ohio.xml',
|
||||||
|
|||||||
@@ -78,6 +78,8 @@
|
|||||||
ref('hr_payroll_rule_er_us_nc_suta'),
|
ref('hr_payroll_rule_er_us_nc_suta'),
|
||||||
ref('hr_payroll_rule_ee_us_nc_sit'),
|
ref('hr_payroll_rule_ee_us_nc_sit'),
|
||||||
|
|
||||||
|
ref('hr_payroll_rule_er_us_nh_suta'),
|
||||||
|
|
||||||
ref('hr_payroll_rule_er_us_nj_suta'),
|
ref('hr_payroll_rule_er_us_nj_suta'),
|
||||||
ref('hr_payroll_rule_ee_us_nj_suta'),
|
ref('hr_payroll_rule_ee_us_nj_suta'),
|
||||||
ref('hr_payroll_rule_er_us_nj_sdi'),
|
ref('hr_payroll_rule_er_us_nj_sdi'),
|
||||||
|
|||||||
47
l10n_us_hr_payroll/data/state/nh_new_hampshire.xml
Normal file
47
l10n_us_hr_payroll/data/state/nh_new_hampshire.xml
Normal file
@@ -0,0 +1,47 @@
|
|||||||
|
<?xml version="1.0" encoding="UTF-8" ?>
|
||||||
|
<odoo>
|
||||||
|
<!-- Wage Base -->
|
||||||
|
<data noupdate="1">
|
||||||
|
<record id="rule_parameter_us_nh_suta_wage_base_2020" model="hr.payroll.rate">
|
||||||
|
<field name="name">US NH New Hampshire SUTA Wage Base</field>
|
||||||
|
<field name="code">us_nh_suta_wage_base</field>
|
||||||
|
<field name="parameter_value">14000.00</field>
|
||||||
|
<field name="date_from" eval="datetime(2020, 1, 1).date()"/>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<!-- Rate -->
|
||||||
|
<data noupdate="1">
|
||||||
|
<record id="rule_parameter_us_nh_suta_rate_2020" model="hr.payroll.rate">
|
||||||
|
<field name="name">US NH New Hampshire SUTA Rate</field>
|
||||||
|
<field name="code">us_nh_suta_rate</field>
|
||||||
|
<field name="parameter_value">1.2</field>
|
||||||
|
<field name="date_from" eval="datetime(2020, 1, 1).date()"/>
|
||||||
|
</record>
|
||||||
|
</data>
|
||||||
|
|
||||||
|
<!-- Partners and Contribution Registers -->
|
||||||
|
<record id="res_partner_us_nh_dor" model="res.partner">
|
||||||
|
<field name="name">US New Hampshire - Department of Employment Security - Unemployment Tax</field>
|
||||||
|
<field name="supplier">1</field>
|
||||||
|
</record>
|
||||||
|
<record id="contrib_register_us_nh_dor" model="hr.contribution.register">
|
||||||
|
<field name="name">US New Hampshire - Department of Employment Security - Unemployment Tax</field>
|
||||||
|
<field name="partner_id" ref="res_partner_us_nh_dor"/>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
<!-- Rules -->
|
||||||
|
<record id="hr_payroll_rule_er_us_nh_suta" model="hr.salary.rule">
|
||||||
|
<field name="sequence" eval="450"/>
|
||||||
|
<field name="category_id" ref="hr_payroll_category_er_us_suta"/>
|
||||||
|
<field name="name">ER: US NH New Hampshire State Unemployment</field>
|
||||||
|
<field name="code">ER_US_NH_SUTA</field>
|
||||||
|
<field name="condition_select">python</field>
|
||||||
|
<field name="condition_python">result, _ = general_state_unemployment(payslip, categories, worked_days, inputs, wage_base='us_nh_suta_wage_base', rate='us_nh_suta_rate', state_code='NH')</field>
|
||||||
|
<field name="amount_select">code</field>
|
||||||
|
<field name="amount_python_compute">result, result_rate = general_state_unemployment(payslip, categories, worked_days, inputs, wage_base='us_nh_suta_wage_base', rate='us_nh_suta_rate', state_code='NH')</field>
|
||||||
|
<field name="register_id" ref="contrib_register_us_nh_dor"/>
|
||||||
|
<field name="appears_on_payslip" eval="False"/>
|
||||||
|
</record>
|
||||||
|
|
||||||
|
</odoo>
|
||||||
@@ -62,6 +62,8 @@ from . import test_us_mt_montana_payslip_2020
|
|||||||
from . import test_us_nc_northcarolina_payslip_2019
|
from . import test_us_nc_northcarolina_payslip_2019
|
||||||
from . import test_us_nc_northcarolina_payslip_2020
|
from . import test_us_nc_northcarolina_payslip_2020
|
||||||
|
|
||||||
|
from . import test_us_nh_new_hampshire_payslip_2020
|
||||||
|
|
||||||
from . import test_us_nj_newjersey_payslip_2019
|
from . import test_us_nj_newjersey_payslip_2019
|
||||||
from . import test_us_nj_newjersey_payslip_2020
|
from . import test_us_nj_newjersey_payslip_2020
|
||||||
|
|
||||||
|
|||||||
@@ -0,0 +1,13 @@
|
|||||||
|
# Part of Hibou Suite Professional. See LICENSE_PROFESSIONAL file for full copyright and licensing details.
|
||||||
|
|
||||||
|
from datetime import date
|
||||||
|
from .common import TestUsPayslip
|
||||||
|
|
||||||
|
|
||||||
|
class TestUsNHPayslip(TestUsPayslip):
|
||||||
|
# TAXES AND RATES
|
||||||
|
NH_UNEMP_MAX_WAGE = 14000.00
|
||||||
|
NH_UNEMP = 1.2
|
||||||
|
|
||||||
|
def test_2020_taxes(self):
|
||||||
|
self._test_er_suta('NH', self.NH_UNEMP, date(2020, 1, 1), wage_base=self.NH_UNEMP_MAX_WAGE)
|
||||||
@@ -155,6 +155,9 @@
|
|||||||
<field name="nc_nc4_sit_allowances" string="Allowances 1."/>
|
<field name="nc_nc4_sit_allowances" string="Allowances 1."/>
|
||||||
<field name="state_income_tax_additional_withholding" string="Additional Withholding 2."/>
|
<field name="state_income_tax_additional_withholding" string="Additional Withholding 2."/>
|
||||||
</group>
|
</group>
|
||||||
|
<group name="state_nh_new_hampshire" string="NH New Hampshire" attrs="{'invisible':[('state_id', '!=', %(base.state_us_24)s)]}">
|
||||||
|
<p colspan="2"><h3>No additional fields.</h3></p>
|
||||||
|
</group>
|
||||||
<group name="state_nj_newjersey" string="NJ New Jersey" attrs="{'invisible':[('state_id', '!=', %(base.state_us_25)s)]}">
|
<group name="state_nj_newjersey" string="NJ New Jersey" attrs="{'invisible':[('state_id', '!=', %(base.state_us_25)s)]}">
|
||||||
<p colspan="2"><h3>Form NJ-W4 - State Income Tax</h3></p>
|
<p colspan="2"><h3>Form NJ-W4 - State Income Tax</h3></p>
|
||||||
<field name="nj_njw4_sit_filing_status" string="Filing Status 2."/>
|
<field name="nj_njw4_sit_filing_status" string="Filing Status 2."/>
|
||||||
|
|||||||
Reference in New Issue
Block a user