Commit Graph

377 Commits

Author SHA1 Message Date
Jared Kipe
ace0000b20 [MIG] hr_payroll_payment: for Odoo 14.0
Added actual payment to tests.
2021-03-09 17:01:45 -08:00
Jared Kipe
986daf01c7 [IMP] hr_payroll_payment: add fiscal position on hr.contract and utilize when making journal entries for payslips 2021-03-09 21:29:39 +00:00
Jared Kipe
be292db946 [FIX] hr_payroll_payment: require hibou_professional 2021-03-09 21:29:39 +00:00
Jared Kipe
ac150e80df [FIX] hr_payroll_payment: use manually set accounting date on payslip if filled
Odoo EE upstream has functionally the same code, so the help for the field is a lie (currently).
2021-03-09 21:29:39 +00:00
Jared Kipe
a356276c65 MIG hr_payroll_payment for Odoo 13 and improve
Pay your Payroll
================

Hibou's Payroll Payments modifies, and abstracts, the way that the accounting for payslips is generated.

In stock Odoo 13, journal entries are grouped by account and name, but has no linking to partners.

On the Payroll Journal, you can now select optional journal entry creation with the options:

- Original: Stock Implementation
- Grouped: Lines are grouped by account and partner.  The slip line names will be comma separated in the line name.
- Payslip: Lines are grouped by account and partner, as above, but a single journal entry will be created per payslip.

Adds configuration on how you would pay your employees on the Payroll journal.  e.g. You write a "check" from "Bank"

Adds button on payslip and payslip batch to generate payment for the employee's payable portion.

When paying on a batch, a "Batch Payment" will be generated and linked to the whole payslip run.

Adds Accounting Date field on Batch to use when creating slips with the batch's date.

Tested
------

Passes original Payroll Accounting tests and additional ones for gouping behavior.
2021-03-09 21:29:39 +00:00
Jared Kipe
1097e0f56f MIG hr_payroll_payment to 12.0. Known issue where you have to change the payment journal to see the methods. 2021-03-09 21:29:38 +00:00
Jared Kipe
99efd58c5a IMP hr_payroll_payment Allow some balances to be reconciled in advance externally (i.e. only pay non-reconciled lines) 2021-03-09 21:29:38 +00:00
Jared Kipe
a9b39d981f Initial commit of Forte Payment integration and parts of hr_payroll_payment to support it. 2021-03-09 21:29:38 +00:00
Jared Kipe
091196dcc1 Adding all from 11.0 https://github.com/hibou-io/odoo-hr-payroll
hr_payroll_holidays
hr_payroll_input_name_report
hr_payroll_input_report
hr_payroll_payment
hr_payroll_timesheet
hr_payslip_line_date
l10n_us_fl_hr_payroll
l10n_us_hr_payroll
l10n_us_mo_hr_payroll
l10n_us_oh_hr_payroll
l10n_us_va_hr_payroll
2021-03-09 21:29:38 +00:00
Jared Kipe
ecc5284ce9 Merge branch 'imp/14.0/us_payroll_2021' into '14.0'
imp/14.0/us_payroll_2021 into 14.0

See merge request hibou-io/hibou-odoo/suite!777
2021-02-23 17:54:17 +00:00
Jared Kipe
23e0273121 [FIX] l10n_us_hr_payroll: 2021 fixes found during porting 2021-02-22 14:28:42 -08:00
Jared Self
1262fb03de [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-01-28 16:41:55 -07:00
Jared Self
b8b9209454 [FIX] l10n_us_hr_payroll: Virginia 2021 test had 2020 dates 2021-01-26 09:22:48 -07:00
Jared Self
e0bf8bf8d0 [FIX] l10n_us_hr_payroll: Removed Debug From Maine Test 2021-01-25 09:26:10 -07:00
Jared Self
a7360f9fb9 [FIX] l10n_us_hr_payroll: Missing Maine 2021-01-21 10:40:53 -07:00
Jared Kipe
d2ce696bbd [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-01-21 10:22:56 -07:00
Jared Kipe
2748a832c3 Merge branch 'imp/14.0/pos_pax__debit' into '14.0'
imp/14.0/pos_pax__debit into 14.0

See merge request hibou-io/hibou-odoo/suite!749
2020-12-29 18:26:02 +00:00
Jared Kipe
d17bca3556 [IMP] pos_pax: implement low level and UI for Debit cards. 2020-12-29 08:43:10 -08:00
Jared Kipe
ed87ca76d2 Merge branch 'fix/14.0/hr_payroll_overtime__view_colspan' into '14.0'
fix/14.0/hr_payroll_overtime__view_colspan into 14.0

See merge request hibou-io/hibou-odoo/suite!735
2020-12-17 20:39:37 +00:00
Jared Kipe
2f51d491ef [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)
2020-12-10 14:04:46 -08:00
Jared Kipe
52937f2fe5 Merge branch 'imp/14.0/hr_payroll_overtime__exempt' into '14.0'
imp/14.0/hr_payroll_overtime__exempt into 14.0

See merge request hibou-io/hibou-odoo/suite!731
2020-12-10 21:20:35 +00:00
Jared Kipe
3da295572c [IMP] hr_payroll_overtime: implement exempt from overtime on contract 2020-12-10 09:48:31 -08:00
Jared Kipe
3603be41b7 Merge branch 'imp/14.0/hr_payroll_overtime__work_type_override' into '14.0'
imp/14.0/hr_payroll_overtime__work_type_override into 14.0

See merge request hibou-io/hibou-odoo/suite!724
2020-12-10 17:29:39 +00:00
Jared Kipe
0997b87930 [FIX] hr_payroll_overtime: tests after cherry-pick from 13.0 2020-12-09 16:00:55 -08:00
Jared Kipe
f61bb6e15c [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.
2020-12-09 15:30:16 -08:00
Jared Kipe
b65a6f2420 Merge branch 'fix/14.0/H4936_account_invoice_margin__refactored_to_safely_index_list' into '14.0'
fix/14.0/H4936_account_invoice_margin__refactored_to_safely_index_list into 14.0

See merge request hibou-io/hibou-odoo/suite!720
2020-12-04 21:52:45 +00:00
Connor Christian
9917e057e2 [FIX] account_invoice_margin: refactored to safely index into a list and rename variable
H4936
2020-12-04 16:50:10 -05:00
Jared Kipe
656f9f7bf0 Merge branch 'mig/14.0/hr_payroll_timesheet' into '14.0'
mig/14.0/hr_payroll_timesheet into 14.0

See merge request hibou-io/hibou-odoo/suite!714
2020-11-28 00:37:04 +00:00
Jared Kipe
2d735743da [FIX] hr_payroll_attendance: tests and migration fixes 2020-11-27 16:30:59 -08:00
Jared Kipe
9c22f845fe [IMP] hr_payroll_overtime: expose the "Rate" field on Worked Day Lines 2020-11-27 16:30:23 -08:00
Jared Kipe
7da29f9972 [MIG] hr_payroll_timesheet: for Odoo Enterprise 14.0 2020-11-27 16:29:48 -08:00
Jared Kipe
c1b9fb4eff [IMP] hr_payroll_timesheet: normalize 'amount' on leave lines, require hibou_professional 2020-11-27 14:47:15 -08:00
Jared Kipe
be0d56d035 [IMP] hr_payroll_timesheet: require hr_timesheet_work_type and use the timesheet's specififed work entry type 2020-11-27 14:47:15 -08:00
Jared Kipe
6af3e23696 [IMP] hr_payroll_timesheet: Migration script for 13 2020-11-27 14:47:15 -08:00
Jared Kipe
95f88c4e87 [FIX] hr_payroll_timesheet: repeated onchange in a single change will duplicate timesheet in a set until saved 2020-11-27 14:47:15 -08:00
Jared Kipe
383a47e487 [FIX] hr_payroll_timesheet: Unlink behavior on timesheet entries and remove "Work Calendar" work lines. 2020-11-27 14:47:15 -08:00
Jared Kipe
2dafa61918 [MIG] hr_payroll_timesheet: to Odoo 13.0 + [ADD] Overtime calculations 2020-11-27 14:47:15 -08:00
Jared Kipe
fb1b1c2c5f MIG hr_payroll_timesheet to 12.0 2020-11-27 14:47:15 -08:00
Jared Kipe
b1c2987029 Initial commit of *new* hr_payroll_timesheet and hr_payroll_timesheet_old for 11.0 2020-11-27 14:47:15 -08:00
Jared Kipe
5fcad50d8b Proper migration to 11.0, and implementation of 'overtime rules' breakdown of hours/weeks. 2020-11-27 14:47:15 -08:00
Jared Kipe
b4847a5032 Adding all from 11.0 https://github.com/hibou-io/odoo-hr-payroll
hr_payroll_holidays
hr_payroll_input_name_report
hr_payroll_input_report
hr_payroll_payment
hr_payroll_timesheet
hr_payslip_line_date
l10n_us_fl_hr_payroll
l10n_us_hr_payroll
l10n_us_mo_hr_payroll
l10n_us_oh_hr_payroll
l10n_us_va_hr_payroll
2020-11-27 14:47:15 -08:00
Jared Kipe
baf9236835 [MIG] hr_timesheet_work_entry: to Odoo 14.0 2020-11-27 14:46:48 -08:00
Jared Kipe
c70737f359 [ADD] hr_timesheet_work_entry: for Odoo 13 2020-11-27 14:46:48 -08:00
Jared Kipe
0f17c1438c [IMP] hr_payroll_overtime: refactor/improve API (for hr_payroll_attendance) 2020-11-27 14:23:33 -08:00
Jared Kipe
16821f85c3 [IMP] hr_payroll_hibou: Control the 'wage_type' at the HR Contract Level
This will make it possible to be more abstract with 'work_type' or 'worked days lines' and overtime.
2020-11-27 14:22:16 -08:00
Jared Kipe
9f59dd2dee [MIG] hr_payroll_attendance: for Odoo Enterprise 13.0
Move some concerns to other modules, refactor new API to make it possible to use timesheets and attendances together.

Now possible to add attendances by hand or import via smart button and 'recompute' attendances.
2020-11-27 14:20:26 -08:00
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