Tuesday, March 21, 2023
5 changes · master
Enhancements to existing features
Employees can now only select working calendars for their current company or calendars that are shared across companies. This helps prevent confusion and avoids exposing unavailable company records when setting up HR contracts.
Original PR description
Before this commit user was able to select calendars from differant companies even though user is not allowed to read that companies record. This commit add company field and use it in domain to select calendars of current company or calendars with no company set. task-3078009
Accounting teams can now calculate depreciation schedules for multiple fixed assets at once from the asset list. This makes it faster to review and validate imported assets during an accounting migration, reducing manual effort and improving migration efficiency.
Original PR description
When migrating the accounting to Odoo, an important flow is to check and validate the import of the existing fixed assets. In order to ease this process, we will now allow to compute the depreciation board of multiple assets at once from the list view. Task id # 3229892
Planning users now get clearer options when editing or deleting recurring shifts, including whether changes apply to one shift, future shifts, or the full recurrence. The form also shows upcoming occurrences and a recurrence count, making repeat scheduling easier to understand and manage.
Original PR description
All of the following elements should only be visible if 'repeat' is true on the shift : \- Display an alert from which the user can choose to either > edit the current shift > this shift and the following > all of the shifts of the recurrence \- Add a green alert next to the repeat fields that indicates the next occurrences based on the recurrence configured. \- Add a 'x shifts in recurrence' stat button \- When deleting a shift, raise a warning from which the user can choose to either > delete the current shift > this shift and the following > all of the shifts of the recurrence task-2896134
Payroll structure type forms now show working calendars that match the selected country and company context. This helps prevent users from choosing calendars from companies they should not use, improving payroll setup accuracy.
Original PR description
This commit add company field in Structure type view because it is used in a field domain. related PR: https://github.com/odoo/odoo/pull/109904 task-3078009
The timesheet validation action now better reflects whether there are timesheets waiting to be approved. This helps managers quickly see when action is needed and reduces visual distraction when there is nothing to validate.
Original PR description
In this commit, 'Validate' button in the validate menu will be displayed secondary if there are no timesheets to validate and primary if there are timesheets to validate for the period being displayed. Related PR: https://github.com/odoo/odoo/pull/93821 task-2813765