Robot Odoo
authored
Purpose ======= For payroll purpose, we need to manage attendances. For instance, someone is working only mondays, tuesdays and fridays, but works exceptionally an other day. It must be recorded. Specification =========== The new models are used to represent attendances, extra hours and leaves (as `hr.benefit`s) in a new window called "Benefits". The schedule of employees for the full month is visible in that view (calendar view). First the benefits needs to be generated (via a button) based on the calendar attendances and leaves. The manager can then check benefits, delete or add some. Only the benefit name and type can be edited (not start and end dates). Once benefits are correct, they can be validated. Validation will fail if they are some leaves to approve or if some benefits overlap on the same day. Benefits cannot be deleted or edited once validated. When benefits are all validated, a button appears to generate payslips. Additional development ================== Most of the time we don't what is the next action that should be done when creating payslips or payslip batches. - Improve the layout, the buttons of the payroll object. - Refactor a little the code to reuse existing chunks of code instead of reinventing the wheel in several methods. - Remove the hr.rule.input model. - Remove an useless report. See each individual commit for more information. TaskID: 1912944, 1903239 closes odoo/odoo#29065
Name | Last commit | Last update |
---|