Commit Graph

229 Commits

Author SHA1 Message Date
Jared Kipe
a4478c18f7 [FIX] hr_payroll_attendance: tests and migration fixes 2021-10-07 11:31:54 -07:00
Jared Kipe
0fa8681198 [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.
2021-10-07 11:31:54 -07:00
Jared Kipe
a8bf1ad78d [IMP] hr_payroll_attendance: normalize 'amount' on leave lines, require hibou_professional 2021-10-07 11:31:54 -07:00
Jared Kipe
ffee220f25 [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.
2021-10-07 11:31:54 -07:00
Jared Kipe
e5ef236631 [NEW] hr_attendance_work_entry: for Odoo 13 2021-10-07 11:31:54 -07:00
Jared Kipe
da6e6a6de1 [IMP] hr_payroll_attendance: Migration script for 13 2021-10-07 11:31:54 -07:00
Jared Kipe
06026ee9f0 [FIX] hr_payroll_attendance: repeated onchange in a single change will duplicate attendances in a set until saved 2021-10-07 11:31:54 -07:00
Jared Kipe
799880ebcf [FIX] hr_payroll_attendance: Unlink behavior on attendances and remove "Work Calendar" work lines. 2021-10-07 11:31:54 -07:00
Jared Kipe
d76403083e [FIX] hr_payroll_attendance: unlink behavior for multi-worked-lines 2021-10-07 11:31:54 -07:00
Jared Kipe
67ad69557e [MIG] hr_payroll_attendance: to Odoo 13.0 + [ADD] Overtime calculations 2021-10-07 11:31:54 -07:00
Jared Kipe
6ca232dcb2 MIG hr_payroll_attendance to 12.0 2021-10-07 11:31:54 -07:00
Jared Kipe
da26919f50 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.
2021-10-07 11:31:54 -07:00
Jared Kipe
88daea82f5 Merge branch 'mig/15.0/hr_attendance_work_entry' into '15.0'
mig/15.0/hr_attendance_work_entry into 15.0

See merge request hibou-io/hibou-odoo/suite!1122
2021-10-07 18:10:16 +00:00
Jared Kipe
390784f726 [MIG] hr_attendance_work_entry: to Odoo 15.0 2021-10-07 10:59:27 -07:00
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
e1f79ab236 Merge branch 'mig/15.0/hr_payroll_timesheet' into '15.0'
mig/15.0/hr_payroll_timesheet into 15.0

See merge request hibou-io/hibou-odoo/suite!1120
2021-10-07 17:34:02 +00:00
Jared Kipe
14ce451d2e [MIG] hr_payroll_timesheet: to Odoo 15.0 2021-10-07 09:48:54 -07:00
Jared Kipe
3617188ff8 [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:42:26 +00:00
Jared Kipe
11b9ffe5ef [MIG] hr_payroll_timesheet: for Odoo Enterprise 14.0 2021-10-07 16:42:26 +00:00
Jared Kipe
2ff56a9050 [IMP] hr_payroll_timesheet: normalize 'amount' on leave lines, require hibou_professional 2021-10-07 16:42:26 +00:00
Jared Kipe
1289bbc5b0 [IMP] hr_payroll_timesheet: require hr_timesheet_work_type and use the timesheet's specififed work entry type 2021-10-07 16:42:25 +00:00
Jared Kipe
54747eefff [IMP] hr_payroll_timesheet: Migration script for 13 2021-10-07 16:42:25 +00:00
Jared Kipe
addfd391e6 [FIX] hr_payroll_timesheet: repeated onchange in a single change will duplicate timesheet in a set until saved 2021-10-07 16:42:25 +00:00
Jared Kipe
c2b8442de8 [FIX] hr_payroll_timesheet: Unlink behavior on timesheet entries and remove "Work Calendar" work lines. 2021-10-07 16:42:25 +00:00
Jared Kipe
b290fdb9b5 [MIG] hr_payroll_timesheet: to Odoo 13.0 + [ADD] Overtime calculations 2021-10-07 16:42:25 +00:00
Jared Kipe
e3371efb3e MIG hr_payroll_timesheet to 12.0 2021-10-07 16:42:25 +00:00
Jared Kipe
d1a849688f Initial commit of *new* hr_payroll_timesheet and hr_payroll_timesheet_old for 11.0 2021-10-07 16:42:25 +00:00
Jared Kipe
f59359c0b6 Proper migration to 11.0, and implementation of 'overtime rules' breakdown of hours/weeks. 2021-10-07 16:42:25 +00:00
Jared Kipe
ca0bf33ee4 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-10-07 16:42:25 +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