Tuesday, March 21, 2023
8 changes · master
Enhancements to existing features
Drag-and-drop behavior in the web interface can now require a longer press before starting. This helps prevent accidental dragging when users are simply clicking or making small pointer movements.
Original PR description
This commit introduces a "delay" parameter used to drag elements on a long mousedown instead of a short one. This is coupled with the "tolerance" parameter to define the area in which the mousedown is considered uninterrupted. --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
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
Salary simulation links for Belgian fleet payroll now always treat the company car as new. This keeps simulations aligned with the intended payroll assumptions and reduces ambiguity for employees reviewing compensation offers.
Original PR description
task - 3209443
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
The timesheet validation screen now changes the validate button color based on whether all timesheets are already validated. This helps managers quickly see when there is still validation work to do versus when everything is complete.
Original PR description
In this commit, If all the timesheets are validate then the color of the validated button will be secondary otherwise it will be primary. task-2813765
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