Daily updates from Odoo
Friday, January 18, 2019
3 changes · master
Enhancements to existing features
The Lunch app now supports easier self-service ordering, automatic supplier emails, and improved wallet tracking. This reduces manual work for lunch administrators while giving employees a friendlier way to order, reuse preferences, choose locations, and manage orders until arrival.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update streamlines payroll and benefits work by removing extra popups, adding employee filtering, improving labels, and making payslip lists easier to search and process. Payroll officers can generate benefits and payslips faster, confirm multiple payslips at once, and navigate a clearer menu structure.
Original PR description
This commit improves general usability. Specification ============= Screens usability: 1/ Benefits 1.1/ Calendar - Add a sidebar filter to filter employees. The filters are saved per user. If no…
This commit improves general usability.
Specification
=============
Screens usability:
1/ Benefits
1.1/ Calendar
- Add a sidebar filter to filter employees. The filters are saved per user.
If no filter exists for the user the 'Everybody' filter should be true by default.
- Generate benefits when clicking on the menu -> remove the wizard (popup): generate benefits for all running contracts
- Once generated, don't show again the generate benefits button: only show the Validate button
- Generate Payslips button: remove the wizard. It generates payslip of validated benefits
and jumps to the payslip batch form view.
1.2/ Form:
- rename: Start into "From"
- rename: End into "To"
- rename: Hours into "Period" (add 'hours' as unit on the right of the field)
2/ Payslip
2.1/ Form:
- Remove Payslip stat button.
- a computed payslip should be editable
2.2/ List:
- show: Reference | Employee | Batch Name | From | To | Gross Salary | Net Salary | Status
- In action buttons add a "Confirm" to confirm multiple payslips
- add a quick search on contract
- filters: rename 'draft' into "To Compute"
- filter: add "To Confirm"
Menus:
1/ Salary Computation
- Benefits (object: hr.benefit ; view: calendar, list, form, pivot. Group: hr officer ; filters: group by employee in the view)
- Payslips (objetc: hr.payslip ; Views: list, form, pivot. Group: hr officer ; filters: last batch ; Sort: employee name alphabetically)
2/ Employee Payslips
- Batches (objetc: hr.payslip.run ; Views: list, form. Group: hr officer ; Sort: creation date (last one first)
- All Payslips (objetc: hr.payslip ; Views: list, form, pivot. Group: hr officer ; filters: no filters; Sort: employee name alphabetically)
3/ Configuration
- Settings
---Salary---
- Rules
- Structure
- Contributions Registers
---Benefits---
- Benefits Type
---Repository---
- Employees (list)
- Contracts
When a benefit linked to a leave is cancelled, it should refuse the leave.
When a payslip batch is deleted, also delete associated payslips.
+ Refactoring of benefit js to use "Odoo style" event binding.
TaskID: 1916136This update lets Odoo intentionally reuse the same many-to-many relationship for multiple fields on a model, making it easier to show the same related records in different filtered views. It also adjusts internal handling so these shared relationships work correctly when data is linked back from the other side.
Original PR description
This allows a model to have several fields using the same relation on purpose, for instance to show the related items filtered by domains. Also adapt the code to handle multiple many2many inverses.