Thursday, April 2, 2020
4 changes · master
Enhancements to existing features
New work schedules now use the company's default calendar as their starting template instead of always using a generic 40-hour week. Personal calendars are also linked with company-wide time off, helping keep employee availability and absences more consistent across HR and timesheet planning.
Original PR description
Before this commit, all new created calendar attendances used "40 hours" as default template. With this commit, new generated calendar attendance will use the company's default calendar as the template This commit also link specific personal calendar with the company global time off. TaskId: 2181651 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
This update adds a shared way for Odoo to check whether one model belongs under another model. It helps features such as messaging, mailing, portal sharing, and SMS composition make these checks more consistently and reliably behind the scenes.
Original PR description
**Description of the issue/feature this PR addresses:** Adds a method to check if a model is a submodel of another model. May be useful for checking mixings. 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-
The bank journal form now hides bank account detail fields until a bank account is selected. This prevents users from entering information that would disappear after saving, making the form clearer and reducing confusion.
Original PR description
Showing these fields does not actually make sense when bank_account_id isn't set as well, since setting them and saving will result in them losing their value (as they're actually related on an empty field). We need to hide them while bank_account_id is not set.
Payroll now offers a configuration menu for working time and updates work entries automatically when company-wide or global time off changes. When different types of leave overlap, payroll applies a clear priority order so employee work entries are generated more consistently.
Original PR description
- Add a new menu in Payroll/Configuration to setup the working time - Rewrite the CRUD operations for resource_calendar_leave, so the work entries will be updated dynamically when Company global leaves or global leaves are modified - Personal leaves (hr_leave) and global leave (resource_calendar_leave) can overlap. And the work entries are generated by the priority as `Company Global Time Off` > `Global Time Off` > `Personal Leave` TaskId: 2181651