hibou-io / hibou-odoo-suite

Hibou Suite: Hoot-Worthy Odoo Tools
GNU Affero General Public License v3.0
39 stars 63 forks source link

Initial commit of *new* `hr_payroll_timesheet` and `hr_payroll_timesheet_old` for 11.0 #4

Closed jaredkipe closed 6 years ago

jaredkipe commented 6 years ago

A while ago I initially intended hr_payroll_timesheet to use timesheet (account.analytic.line) entries, but ended up needing to use attendance objects instead. This left the module in a strange state where the name of the module didn't fit in with the actual intent.

Later, I did a refactor and introduced new techniques into a module named hr_payroll_attendance. This is more or less a direct replacement for the original functionality.

I intended to re-work hr_payroll_timesheet to actually use timesheet entries in 12.0, but really need the functionality now.

Thus a breaking 'refactor' where the old functionality is moved to a new module named hr_payroll_timesheet_old.

Basic upgrade procedure to keep the same behavior (take a backup, etc.):

  1. Copy hr_payroll_timesheet_old into module folder.
  2. Install hr_payroll_timesheet_old
  3. Uninstall hr_payroll_timesheet (which is basically identical)

Technically, it is probably better to install hr_payroll_attendance, but there is a small change to the boolean, thus if you do it this way, you need to also update all the contracts that use this functionality, and any payroll rules that look for that boolean.