Commit Graph

201 Commits

Author SHA1 Message Date
Jared Kipe
b3cb28b174 [MIG] hr_attendance_work_entry: to Odoo 14.0 2021-10-07 17:37:20 +00:00
Brett Spaulding
d52761f5bc [IMP] hr_attendance_work_entry: Modified kiosk mode views and attendance views to allow for various punch types. 2021-10-07 17:37:20 +00:00
Jared Kipe
87ac2897f3 [NEW] hr_attendance_work_entry: for Odoo 13 2021-10-07 17:37:20 +00:00
Jared Kipe
01e60f6e35 Merge branch 'mig/15.0/hr_payroll_overtime' into '15.0'
mig/15.0/hr_payroll_overtime into 15.0

See merge request hibou-io/hibou-odoo/suite!1118
2021-10-07 16:33:12 +00:00
Jared Kipe
849bd4ee0f Merge branch 'mig/15.0/hr_timesheet_work_entry' into '15.0'
mig/15.0/hr_timesheet_work_entry into 15.0

See merge request hibou-io/hibou-odoo/suite!1116
2021-10-07 16:28:47 +00:00
Jared Kipe
a2dc4999cd [MIG] hr_payroll_overtime: to Odoo Enterprise 15.0 2021-10-07 09:28:20 -07:00
Jared Kipe
f7b65bfa56 [FIX] hr_payroll_overtime: colspan 4 squishes above fields
Essentially, the colspan=4 here pushed the two fields above it into a strange view because it is a single group that is already 4 col wide.

(cherry picked from commit d87fa8c923)
2021-10-07 16:14:59 +00:00
Jared Kipe
75d6c97e69 [IMP] hr_payroll_overtime: implement exempt from overtime on contract 2021-10-07 16:14:59 +00:00
Jared Kipe
60fe0cc4a2 [FIX] hr_payroll_overtime: tests after cherry-pick from 13.0 2021-10-07 16:14:59 +00:00
Jared Kipe
0f66423e70 [IMP] hr_payroll_overtime: refactor to abstract override class and use on Work Types themselves
E.g. It is now possible to support "Sunday Pay" where before it was only possible to give "Sunday Overtime Pay" as an override to overtime itself.
2021-10-07 16:14:59 +00:00
Jared Kipe
0bbd1cfc37 [IMP] hr_payroll_overtime: expose the "Rate" field on Worked Day Lines 2021-10-07 16:14:59 +00:00
Jared Kipe
3da66730d1 [IMP] hr_payroll_overtime: refactor/improve API (for hr_payroll_attendance) 2021-10-07 16:14:59 +00:00
Jared Kipe
4aa89786cf [MIG] hr_payroll_overtime: for Odoo Enterprise 14.0 2021-10-07 16:14:59 +00:00
Jared Kipe
ab1fbc9a00 [IMP] hr_payroll_overtime: implement date or day of week overrides to overtime rules 2021-10-07 16:14:59 +00:00
Jared Kipe
5c5de9d9c1 [IMP] hr_payroll_overtime: detect recursion and prevent the simplest type in the form view 2021-10-07 16:14:59 +00:00
Jared Kipe
af837721f5 [IMP] hr_payroll_overtime: refactor calculation to allow 'recursion' or overtime on overtime
Example.  Lets say you have 8hr/day overtime at 1.5x, and 12hr/day overtime at 2x.
Now you can create a 2x overtime rules for 12 hours/day, and use it as the overtime rules for the original overtime worktype.
2021-10-07 16:14:59 +00:00
Jared Kipe
d25f6d374c [ADD] hr_payroll_overtime: for Odoo 13.0 2021-10-07 16:14:59 +00:00
Jared Kipe
fcc88eb2a2 Merge branch 'mig/15.0/l10n_us_hr_payroll_401k' into '15.0'
mig/15.0/l10n_us_hr_payroll_401k into 15.0

See merge request hibou-io/hibou-odoo/suite!1114
2021-10-07 16:13:38 +00:00
Jared Kipe
649bd5f37d Merge branch 'mig/15.0/l10n_us_hr_payroll_account' into '15.0'
mig/15.0/l10n_us_hr_payroll_account into 15.0

See merge request hibou-io/hibou-odoo/suite!1112
2021-10-07 16:11:44 +00:00
Jared Kipe
79bf695ab3 [MIG] hr_timesheet_work_entry: for Odoo 15.0 2021-10-07 09:10:12 -07:00
Jared Kipe
7b74cc5fbf [IMP] hr_timesheet_work_entry: add permission for base users to read work types 2021-10-07 16:08:22 +00:00
Jared Kipe
7de1e9d6ad [FIX] hr_payroll_timesheet: Fixes for a database that has gone through multiple Odoo Upgrades
Init will run on install, even if the module existed in the prior version.  Because these init scripts are intended to clear (and maybe even re-name back on actual init of data), records we should be more generic with the intended name.

Additionally, if your database already had `hr_payroll_timesheet` based 'TS' work entry codes, then we cannot delete it if it is used on records like payslips (as a work type).  Delete the link to simply stop using the old record, but leave it behind to keep it working.
2021-10-07 16:08:22 +00:00
Jared Kipe
e54c411080 [MIG] hr_timesheet_work_entry: to Odoo 14.0 2021-10-07 16:08:22 +00:00
Jared Kipe
a83cf2bfeb [ADD] hr_timesheet_work_entry: for Odoo 13 2021-10-07 16:08:22 +00:00
Jared Kipe
05821702b8 [MIG] l10n_us_hr_payroll_401k: to Odoo 15.0 2021-10-07 09:07:06 -07:00
Jared Kipe
bb76acb352 [MIG] l10n_us_hr_payroll_401k: for Odoo Enterprise 14.0
Additionally, added search view to assist in configuring and added it to the config section in `hr_payroll_hibou`.
2021-10-07 16:02:25 +00:00
Jared Kipe
b74cf019c1 [IMP] l10n_us_hr_payroll_401k: Add migration code to handle known issues from Odoo S.A. migrations. 2021-10-07 16:02:25 +00:00
Jared Kipe
4d46777fc0 [ADD] l10n_us_hr_payroll_401k: initial commit for Odoo 13.0 2021-10-07 16:02:25 +00:00
Jared Kipe
a5fe7b7988 [MIG] l10n_us_hr_payroll_account: to Odoo 15.0 2021-10-07 09:01:15 -07:00
Jared Kipe
433f93712a [MIG] l10n_us_hr_payroll_account: to Odoo Enterprise 14.0 2021-10-07 15:55:12 +00:00
Jared Kipe
a0b4c596be [IMP] l10n_us_hr_payroll_account: add record rules to reset accounting on selected rules 2021-10-07 15:55:12 +00:00
Jared Kipe
b3375621bd FIX l10n_us_hr_payroll_account Cannot create journal with optional field from hr_payroll_payment 2021-10-07 15:55:12 +00:00
Jared Kipe
87a8104add NEW l10n_us_hr_payroll_account Rewrite for Odoo 13 2021-10-07 15:55:12 +00:00
Jared Kipe
8f9ef7b259 Merge branch 'mig/15.0/l10n_us_hr_payroll' into '15.0'
mig/15.0/l10n_us_hr_payroll into 15.0

See merge request hibou-io/hibou-odoo/suite!1110
2021-10-07 15:51:30 +00:00
Jared Kipe
ca1e573cb2 [MIG] l10n_us_hr_payroll: to Odoo 15.0 2021-10-07 07:39:57 -07:00
Jared Kipe
7310969e57 [FIX] hr_payroll_hibou: test harness for downstream needs home address 2021-10-07 07:35:41 -07:00
Jared Kipe
761f66c932 [IMP] l10n_us_hr_payroll: new September 2021 Ohio multiplier 2021-10-07 13:09:16 +00:00
Jared Kipe
3c7e67805c [FIX] l10n_us_hr_payroll: 2021 fixes found during porting 2021-10-07 13:09:16 +00:00
Jared Self
4bce6f8661 [FIX] l10n_us_hr_payroll: Fix parameters dates, python errors, and result values
Fixed parameter dates in Hawaii, Python errors in wa_washington.xml, some results in Alabama and Iowa, and removing 2019 info in test_us_payslip_2020.py
2021-10-07 13:09:16 +00:00
Jared Self
63131f65cb [FIX] l10n_us_hr_payroll: Virginia 2021 test had 2020 dates 2021-10-07 13:09:16 +00:00
Jared Self
824ac3860d [FIX] l10n_us_hr_payroll: Removed Debug From Maine Test 2021-10-07 13:09:16 +00:00
Jared Self
b876c775ec [FIX] l10n_us_hr_payroll: Missing Maine 2021-10-07 13:09:16 +00:00
Jared Kipe
a87e15e19b [IMP] l10n_us_hr_payroll: Migrating States and Federal for 2021
TX Texas Amended (+50 squashed commits)
Squashed commits:
[7da4d616] ID Idaho
[a2970d9b] FED amended
[8ebf4c24] FED
[080f6f05] TN Tennessee
[bf2aa103] MI Michigan
[493a6361] SC South Carolina
[8e97119d] LA Louisiana
[ee97a733] DE Delaware
[5d9a7ced] WY Wyoming
[8f72bfdd] WI Wisconsin
[88073c7e] WV West Virginia
[192ea027] VA Virginia
[a32b4630] VT Vermont
[1874a69f] TX Texas
[39db5caa] SD South Dakota
[21ebee50] RI Rhode Island
[677e6f78] PA Pennsylvania
[91cb694d] OK Oklahoma
[5d93e5c4] ND North Dakota
[f3d535ba] NM New Mexico
[308fd185] NJ New Jersey
[3c36600c] NH New Hampshire
[d422bef6] NV Nevada
[dc0551f1] NE Nebraska
[eaae1e2b] MO Missouri
[1ecd2521] MS Mississippi
[bb8734ad] MN Minnesota
[da6d84bb] Revert "ME Maine"

This reverts commit e866f89b2b.
[e866f89b] ME Maine
[c0a7d06c] KY Kentucky
[84556347] IN Indiana
[ed241bf0] IL Illinois
[d4c33133] HI Hawaii
[982bf274] GA Georgia
[5d0ef117] CT Connecticut
[e4713512] CA California
[24b867f3] WA Washington - formatting changes
[e754b3aa] AR Arkansas
[33482ad3] UT Utah
[25595393] WA Washington
[ac222b58] MT Montana
[55babb7b] AZ Arizona todo: Income Tax not calculated
[8b184e6f] AL Alabama
[cc688c9d] AK Alaska
[e8b105ad] OH Ohio
[bff5ca12] nc north carolina
[118e9a76] ny new york
[575953a3] fl florida
[401a7ce3] IA Iowa
2021-10-07 13:09:16 +00:00
Jared Kipe
fe423e0d0b [MIG] l10n_us_hr_payroll: to Odoo 14.0
Require `hr_payroll_hibou`, remove a lot of 'fixes' and stuff that is useful for 'all' payroll.

Failing tests:

Deleware 2020 is low by ~0.1% in SIT only.
Pennsylvania 2019, 2020 is low by ~0.01% in SIT only.
I did not try to correct, only verify that the data and calculation is the same between versions. (which it is)

Washington 2019, 2020 hours was off  (183.99972222222223 != 184)
Fixed by turning it into assertAlmostEqual
2021-10-07 13:09:15 +00:00
Jared Kipe
be1fd5c8d2 [IMP] l10n_us_hr_payroll: Rules and improvements. (+104 squashed commits)
Squashed commits:
[9ca3d040] [FIX] l10n_us_hr_payroll: payslip category sum over date range now includes child categories
[7a92b96e] [FIX] l10n_us_hr_payroll: remove overwrite to correct wage calculation above
[45d130ce] [IMP] l10n_us_hr_payroll: Add migration code to handle known issues from Odoo S.A. migrations.
[54bffced] [FIX] l10n_us_hr_payroll: add missing `semi-monthly` as a default schedule pay
[d7206395] [IMP] l10n_us_hr_payroll: common test call paramaterize defaults for Structure Type and Resource Calendar
[a1174740] [FIX] l10n_us_hr_payroll : Fixed exempt test case for 2019.
[2d8ec31b] [IMP] l10n_us_hr_payroll: Improved Tax table and improved Test case for NJ New Jersey 2020
[51f61ab5] [IMP] l10n_us_hr_payroll: Added comment and improved Test case for MS Mississippi 2020
[5bfe38f3] [IMP] l10n_us_hr_payroll: Improved Test case for MI Michigan 2020
[c21aa7a7] [IMP] l10n_us_hr_payroll: Added comment for MN Minnesota 2020
[ed67319a] [IMP] l10n_us_hr_payroll: Added comment and improved Test case for MO Missouri 2020
[cc68ea2e] [IMP] l10n_us_hr_payroll: Added Tax table and improved Test case for MT Montana 2020
[9450418c] [IMP] l10n_us_hr_payroll: Added Tax table and improved Test case for ID Idaho 2020
[c389748c] [IMP] l10n_us_hr_payroll: Added Tax table and improved Test case for KY Kentucky 2020
[6d4171fc] [IMP] l10n_us_hr_payroll: Reformat tax table, improved comments and test case for IA Iowa 2020
[77588bc6] [IMP] l10n_us_hr_payroll: Improved Tax table and Test case for HI Hawaii 2020
[585f8cbf] [IMP] l10n_us_hr_payroll: Added Tax table for 2020 and improved Test case for GA Georgia 2020
[92a89e59] [IMP] l10n_us_hr_payroll: Reformat tax table, improved comments and test case for CA California 2020
[785b33e3] [IMP] l10n_us_hr_payroll: Improved comments and test case for CT Connecticut 2020
[13198a9e] [IMP] l10n_us_hr_payroll: Improved test case for CO Colorado 2020
[c65b62a7] [IMP] l10n_us_hr_payroll: Improved comments and test case for AR Arkansas 2020
[e01eeb65] [IMP] l10n_us_hr_payroll: Improved test case for AZ Arizona 2020
[5cf0b69e] [IMP] l10n_us_hr_payroll: Improved comments, Tax table, filing status and test case for AL Alabama 2020
[64436b6e] [IMP] l10n_us_hr_payroll: Improved comments and test case for NM New Mexico 2020
[c395c8a9] [IMP] l10n_us_hr_payroll: Added Comment, removed one filing status which was not used in calculation and improve test case for exempt for NC North Carolina 2020
[ff4adfe8] [IMP] l10n_us_hr_payroll: Comment add for table for VA Virginia 2020
[9fc9b3b6] [IMP] l10n_us_hr_payroll: Reformat Tax table and changed wage for VT Vermont 2020
[5c96026b] [IMP] l10n_us_hr_payroll: Reformat Tax table and changed SUTA rate for RI Rhode Island 2020
[2a2abb62] [IMP] l10n_us_hr_payroll: Reformat Tax table, changed SUTA rate and improved test case for UT Utah 2020.
[42edfc06] [IMP] l10n_us_hr_payroll: Refactored Tax table, changed filing status string and Improved test case for KS Kansas 2020.
[733e721a] [IMP] l10n_us_hr_payroll: Reformat Tax table, changed field string and improved test case for OK Oklahoma 2020
[7c2d9a20] [IMP] l10n_us_hr_payroll: Reformat Tax table for WV West Virginia 2020.
[91630c86] [IMP] l10n_us_hr_payroll: Refactored Tax table, changed tax rate and added additional withholding field. Improved test case for ME Maine 2020.
[9c62ebaf] [IMP] l10n_us_hr_payroll: Refactored Tax table and Improved test case for NE Nebraska 2020.
[88118297] [IMP] l10n_us_hr_payroll: Refactored  Tax table and Improved test case for ME Maine 2020.
[641bb815] [IMP] l10n_us_hr_payroll: Refactored sit rate tax table and added allowance field and apply on calculation. Also Improved test case for for ND North Dakota 2020.
[f6f81615] [IMP] l10n_us_hr_payroll: Changed Form name and additional withholding field string for IN Indiana 2020.
[e4c9774f] [IMP] l10n_us_hr_payroll: Added additional withholding, changed suta rate for 2020 and Improved test for SC South Carolina 2020.
[91887067] [IMP] l10n_us_hr_payroll: Improved test and restructured table for WI Wisconsin 2020.
[9110d174] [FIX] l10n_us_hr_payroll: Updated NY New York 2020 rates and tests.
[1a7c26d8] [FIX]  l10n_us_hr_payroll: Added exempt on filing status for NY.
[8f447aaa] [IMP] l10n_us_hr_payroll: Changed wage base and suta rate for NY New York 2019/2020.
[e9a53918] [IMP] l10n_us_hr_payroll: Changed suta rate for WY Wyoming 2020.

H2914
[eddc6431] [IMP] l10n_us_hr_payroll: Changed suta rate and added exempt.

H2816
[dff4a2ca] [IMP] l10n_us_hr_payroll: For Rhode Island 13.0
[baea9412] [IMP] l10n_us_hr_payroll: For West Virginia 13.0
[8fed8e7b] [IMP] l10n_us_hr_payroll: For Wisconsin 13.0
[57182a87] [IMP] l10n_us_hr_payroll: For South Dakota 13.0
[1011c62e] [IMP] l10n_us_hr_payroll: For Tennessee 13.0
[688a3cc1] [IMP] l10n_us_hr_payroll: For Utah 13.0
[ded656db] [IMP] l10n_us_hr_payroll: For Vermont 13.0
[a0da1841] [IMP] l10n_us_hr_payroll: Port `l10n_us_wy_hr_payroll` WY Wyoming including migration.
[977cc3af] [IMP] l10n_us_hr_payroll: For Oklahoma 13.0
[68a0697c] [FIX]l10n_us_hr_payroll: Spell mistake on Kansas state payroll.
[addd5f03] [IMP] l10n_us_hr_payroll: For Kentucky 13.0
[4fb48854] [IMP] l10n_us_hr_payroll: For Kansas 13.0
[60d40449] [IMP] l10n_us_hr_payroll: For Nevada 13.0
[2475250f] [IMP] l10n_us_hr_payroll: For Maine 13.0
[1234467d] [IMP] l10n_us_hr_payroll: For North Dakota 13.0
[d1642bbe] IMP `l10n_us_hr_payroll` Allow configurable changes to payslip summing behavior.

In stock Odoo, summing anything in payroll rules (but most importantly rule amounts and category amounts by code), the considered payslips are referenced from their `date_from` field.  However in the USA, it is in fact the `date_to` that is more important (or accounting date). A Payslip made for 2019-12-20 to 2020-01-04 should in fact be considered a '2020' payslip, and thus the summation on other '2020' payslips must find it by considering payslips `date_to`.
[0af81085] IMP `l10n_us_hr_payroll` Port `l10n_us_ny_hr_payroll` NY New York including migration
[bc5c0b47] IMP `l10n_us_hr_payroll` for Nebraska 13.0
[6f3120f8] IMP `l10n_us_hr_payroll` Port `l10n_us_sc_hr_payroll` SC South Carolina including migration
[9bee1ce7] IMP `l10n_us_hr_payroll` Port `l10n_us_la_hr_payroll` LA Louisiana including migration
[368a7e59] IMP `l10n_us_hr_payroll` for Indiana 13.0
[c7647d08] IMP `l10n_us_hr_payroll` for New Hampshire 13.0
[a738a0af] IMP `l10n_us_hr_payroll` for New Mexico 13.0
[d2898035] IMP `l10n_us_hr_payroll` Port `l10n_us_ia_hr_payroll` IA Iowa including migration
[acdd3d43] IMP `l10n_us_hr_payroll` for Colorado 13.0
[e1eccfc2] IMP `l10n_us_hr_payroll` Port `l10n_us_de_hr_payroll` DE Delaware including migration
[7b4adef4] IMP `l10n_us_hr_payroll` Port `l10n_us_hi_hr_payroll` HI Hawaii including migration
[28eb5b9d] FIX `l10n_us_hr_payroll` Don't give error on Zero wage in FIT
[498137cb] FIX `l10n_us_hr_payroll` Port `l10n_us_id_hr_payroll` Remove supplier from the Partners..
[8895e59f] FIX `l10n_us_hr_payroll` Port `l10n_us_ca_hr_payroll` Added test case on file.
[0082fce8] IMP `l10n_us_hr_payroll` Port `l10n_us_id_hr_payroll` ID Idaho including migration
[92f6d30c] IMP `l10n_us_hr_payroll` Port `l10n_us_ca_hr_payroll` CA California including migration
[2059172b] IMP `l10n_us_hr_payroll` Port `l10n_us_ct_hr_payroll` CT Connecticut including migration
[dd8f7369] IMP `l10n_us_hr_payroll` Port `l10n_us_al_hr_payroll` AL Alabama including migration
[d5c3e427] IMP `l10n_us_hr_payroll` Port `l10n_us_ak_hr_payroll` AK Alaska including migration
[fbba5b2b] FIX `l10n_us_hr_payroll` Changed SUTA Rate for Illinois 2020.
[18421d01] IMP `l10n_us_hr_payroll` Port `l10n_us_az_hr_payroll` AZ Arizona including migration
[f960d135] IMP `l10n_us_hr_payroll` Port `l10n_us_il_hr_payroll` IL Illinois including migration
[b85e7483] IMP `l10n_us_hr_payroll` Port `l10n_us_ar_hr_payroll` AR Arkansas including migration
[61e9530f] IMP `l10n_us_hr_payroll` Create tax exempt categories for table coverage from IRS Pub. 15-B
[38decf71] IMP `l10n_us_hr_payroll` Port `l10n_us_mn_hr_payroll` MN Minnesota including migration
[2c9dca19] IMP `l10n_us_hr_payroll` Port `l10n_us_mi_hr_payroll` MI Michigan including migration
[e175ecbb] IMP `l10n_us_hr_payroll` Port `l10n_us_nc_hr_payroll` NC North Carolina including migration
[db689da4] IMP `l10n_us_hr_payroll` Port `l10n_us_nj_hr_payroll` NJ New Jersey including migration
[130ce65c] IMP `l10n_us_hr_payroll` Add MO Missouri (unemployment, income tax)
[4d4fcd45] IMP `l10n_us_hr_payroll` Use the raw ER rate for Washington LNI (instead of the combined rate and removing EE portion)
[45fb9682] FIX `l10n_us_hr_payroll` Missing Parent Category and Code not matching pattern.
[3ae7b859] IMP `l10n_us_hr_payroll` Refactor to simply tax exempt deductions.
[30eafd14] IMP `l10n_us_hr_payroll` Add MS Mississippi (unemployment, income tax)
[2f7e7b96] IMP `l10n_us_hr_payroll` Add GA Georgia (unemployment, income tax)
[3d79ed81] IMP `l10n_us_hr_payroll` Add form name in Virginia's state box.
[2e6c7050] IMP `l10n_us_hr_payroll` Add VA Virginia (unemployment, income tax)
[8ae58731] IMP `l10n_us_hr_payroll` Add TX Texas (unemployment, OA, ETIA)
[f83bf47c] IMP `l10n_us_hr_payroll` Add WA Washington (unemployment, lni, fml)
[1d661f8d] IMP `l10n_us_hr_payroll` Add OH Ohio (unemployment, income tax)
[edbc8c59] IMP `l10n_us_hr_payroll` Add MT Montana (unemployment (with AFT), income tax)
[dfe38521] IMP `l10n_us_hr_payroll` Implement generic state income tax exempt and additional fields.  Include in PA Tests and State Form section.
[900bc138] IMP `l10n_us_hr_payroll` Add Generic SIT Category and method, add PA Pennsylvania (unemployment (ER, EE), income tax)
[dcafce90] IMP `l10n_us_hr_payroll` Refactor SUTA tests into generic test. (Reworked Florida 2020) (+1 squashed commit)
Squashed commits:
[667cc8c4] IMP `l10n_us_hr_payroll` Add Generic SUTA Category and method, add FL Florida (unemployment, no income tax)
2021-10-07 13:09:15 +00:00
Jared Kipe
5c7c9e6397 NEW l10n_us_hr_payroll Initiall commit for Odoo 13 (rewrite) and 2020 Federal Rates (including new W4) 2021-10-07 13:09:15 +00:00
Jared Kipe
2acd13bd98 Merge branch 'mig/15.0/hr_payroll_payment' into '15.0'
mig/15.0/hr_payroll_payment into 15.0

See merge request hibou-io/hibou-odoo/suite!1108
2021-10-07 13:07:28 +00:00
Jared Kipe
a993e49465 [MIG] hr_payroll_payment: to Odoo 15.0 2021-10-07 05:56:30 -07:00
Jared Kipe
b1825e6808 [MIG] hr_payroll_payment: for Odoo 14.0
Added actual payment to tests.
2021-10-06 20:33:54 +00:00
Jared Kipe
726c12d0d8 [IMP] hr_payroll_payment: add fiscal position on hr.contract and utilize when making journal entries for payslips 2021-10-06 20:33:54 +00:00