Commit Graph

231 Commits

Author SHA1 Message Date
Jared Kipe
0dfee20750 [IMP] hr_payroll_attendance: normalize 'amount' on leave lines, require hibou_professional 2020-11-26 13:25:39 +00:00
Jared Kipe
73948e5c13 [IMP] hr_payroll_attendance: new default entry mechanisms, otherwise use the type from the attendance
Also skip putting it on the sheet if it is an unpaid type.
2020-11-26 13:25:39 +00:00
Jared Kipe
3aa19d714f [NEW] hr_attendance_work_entry: for Odoo 13 2020-11-26 13:25:39 +00:00
Jared Kipe
eeb4a40b69 [IMP] hr_payroll_attendance: Migration script for 13 2020-11-26 13:25:39 +00:00
Jared Kipe
d501d335b8 [FIX] hr_payroll_attendance: repeated onchange in a single change will duplicate attendances in a set until saved 2020-11-26 13:25:39 +00:00
Jared Kipe
c07254ef2b [FIX] hr_payroll_attendance: Unlink behavior on attendances and remove "Work Calendar" work lines. 2020-11-26 13:25:39 +00:00
Jared Kipe
cf399eb6c3 [FIX] hr_payroll_attendance: unlink behavior for multi-worked-lines 2020-11-26 13:25:39 +00:00
Jared Kipe
71709012bb [MIG] hr_payroll_attendance: to Odoo 13.0 + [ADD] Overtime calculations 2020-11-26 13:25:39 +00:00
Jared Kipe
d457394b64 MIG hr_payroll_attendance to 12.0 2020-11-26 13:25:39 +00:00
Jared Kipe
b69b22084a Initial commit of hr_payroll_attendance and hr_payroll_attendance_holidays modules for 11.0.
The purpose of this new functionality is to better distinguish between timesheets and attendance, as well as preventing the stock "salaried" time computations from working.
2020-11-26 13:25:38 +00:00
Jared Kipe
2b4d7c9edc Merge branch 'mig/14.0/hr_payroll_overtime' into '14.0'
mig/14.0/hr_payroll_overtime into 14.0

See merge request hibou-io/hibou-odoo/suite!710
2020-11-26 13:24:54 +00:00
Jared Kipe
e721b483fc [MIG] hr_payroll_overtime: for Odoo Enterprise 14.0 2020-11-26 05:21:54 -08:00
Jared Kipe
28dfe39273 [IMP] hr_payroll_overtime: implement date or day of week overrides to overtime rules 2020-11-26 13:04:35 +00:00
Jared Kipe
19ace4e3bf [IMP] hr_payroll_overtime: detect recursion and prevent the simplest type in the form view 2020-11-26 13:04:35 +00:00
Jared Kipe
06e887622d [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.
2020-11-26 13:04:35 +00:00
Jared Kipe
57f5ddf8e1 [ADD] hr_payroll_overtime: for Odoo 13.0 2020-11-26 13:04:35 +00:00
Jared Kipe
d196568a0b Merge branch 'mig/14.0/hr_attendance_work_entry' into '14.0'
mig/14.0/hr_attendance_work_entry into 14.0

See merge request hibou-io/hibou-odoo/suite!708
2020-11-26 13:03:00 +00:00
Jared Kipe
d2fa0eeff7 [MIG] hr_attendance_work_entry: to Odoo 14.0 2020-11-26 05:00:03 -08:00
Brett Spaulding
46f595fafa [IMP] hr_attendance_work_entry: Modified kiosk mode views and attendance views to allow for various punch types. 2020-11-26 12:34:19 +00:00
Jared Kipe
7862c8b764 [NEW] hr_attendance_work_entry: for Odoo 13 2020-11-26 12:34:19 +00:00
Jared Kipe
282cf9ce38 Merge branch 'mig/14.0/purchase_by_sale_history' into '14.0'
mig/14.0/purchase_by_sale_history into 14.0

See merge request hibou-io/hibou-odoo/suite!702
2020-11-25 16:04:12 +00:00
Leighton Pennicott
55241ed236 [MIG] purchase_by_sale_history: migrate to Odoo 14.0 2020-11-25 10:46:53 -05:00
Leighton Pennicott
63056afb1c [MIG] purchase_by_sale_history: migrate to Odoo 13.0 2020-11-24 14:15:48 +00:00
Jared Kipe
831392762e IMP purchase_by_sale_history Convert "to buy" QTY to the PO Line UOM.
This means that if it is making a new line, it will be the "Purchase UOM", if it is re-using a line it will be the current line UOM (which may have been changed by the user).
2020-11-24 14:15:48 +00:00
Jared Kipe
b6189f3940 MIG purchase_by_sale_history to 12.0 2020-11-24 14:15:48 +00:00
Jared Kipe
e0f69d6095 Initial commit of purchase_by_sale_history_mrp for 11.0
Additionally, refactor and improve `purchase_by_sale_history` to include current inventory demand (virtual_available) for specific warehouses.
2020-11-24 14:15:48 +00:00
Jared Kipe
5268234aca Initial commit of purchase_by_sale_history module for 11.0 2020-11-24 14:15:47 +00:00
Jared Kipe
981775f124 Merge branch 'mig/14.0/l10n_us_hr_payroll_401k' into '14.0'
mig/14.0/l10n_us_hr_payroll_401k into 14.0

See merge request hibou-io/hibou-odoo/suite!700
2020-11-24 02:29:08 +00:00
Jared Kipe
eb85f97d20 [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`.
2020-11-23 18:19:25 -08:00
Jared Kipe
b4ce766638 [IMP] l10n_us_hr_payroll_401k: Add migration code to handle known issues from Odoo S.A. migrations. 2020-11-23 17:39:05 -08:00
Jared Kipe
318fffa1d9 [ADD] l10n_us_hr_payroll_401k: initial commit for Odoo 13.0 2020-11-23 17:39:05 -08:00
Jared Kipe
1ab9b314d7 [MIG] l10n_us_hr_payroll_account: to Odoo Enterprise 14.0 2020-11-22 08:59:42 -08:00
Jared Kipe
8fad98e3d3 [IMP] l10n_us_hr_payroll_account: add record rules to reset accounting on selected rules 2020-11-22 08:26:30 -08:00
Jared Kipe
e6f79536a5 FIX l10n_us_hr_payroll_account Cannot create journal with optional field from hr_payroll_payment 2020-11-22 08:26:30 -08:00
Jared Kipe
6621b13c28 NEW l10n_us_hr_payroll_account Rewrite for Odoo 13 2020-11-22 08:26:30 -08:00
Jared Kipe
825068452e [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
2020-11-22 07:58:17 -08:00
Jared Kipe
86d4087343 [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)
2020-11-22 06:23:36 -08:00
Jared Kipe
4306a6e351 NEW l10n_us_hr_payroll Initiall commit for Odoo 13 (rewrite) and 2020 Federal Rates (including new W4) 2020-11-22 06:18:06 -08:00
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
Jared Kipe
845b8e7d64 Merge branch 'mig/14.0/hr_commission' into '14.0'
mig/14.0/hr_commission into 14.0

See merge request hibou-io/hibou-odoo/suite!672
2020-11-18 19:23:52 +00:00
Jared Kipe
5c14a53e10 Merge branch 'mig/14.0/delivery_gso' into '14.0'
mig/14.0/delivery_gso into 14.0

See merge request hibou-io/hibou-odoo/suite!674
2020-11-18 19:23:37 +00:00
Jared Kipe
fecab33006 Merge branch 'mig/14.0/sale_credit_limit' into '14.0'
mig/14.0/sale_credit_limit into 14.0

See merge request hibou-io/hibou-odoo/suite!676
2020-11-18 19:23:25 +00:00
Jared Self
04eb5ad0a0 [MIG] Changed User For Test Module 2020-11-18 11:51:51 -07:00
Connor Christian
db4256c2c0 [MIG] delivery_gso: for Odoo 14.0 2020-11-18 13:11:00 -05:00
Connor Christian
bb0532cbc6 [MIG] delivery_gso: for Odoo 13.0 2020-11-17 15:19:40 -05:00
Connor Christian
a71eaa0a4f [FIX] delivery_gso: removed outer parenthesis to fix message 2020-11-17 15:19:40 -05:00
Connor Christian
77ef7b8d01 [MIG] delivery_gso: for Odoo 12.0
Fixed warning in manifest by extending underline "===..."
2020-11-17 15:19:40 -05:00
Jared Kipe
5f3daec267 [MOV] delivery_gso: from hibou-suite-enterprise:11.0 2020-11-17 15:19:40 -05:00
Leighton Pennicott
c13f9bb13d [MIG] hr_commission: migrate to Odoo 14.0 2020-11-17 15:06:01 -05:00
Bhoomi Vaishnani
df48365ca1 [MIG] sale_credit_limit: For Odoo13.0 2020-11-17 19:21:14 +00:00