Tuesday, October 26, 2021
19 changes · master
Enhancements to existing features
The employee timesheet cost field has been renamed to “Cost” to make the label clearer and easier to understand. The cost field is also now included in the application group, improving consistency in how employee cost information is presented.
Original PR description
- Renamed title by 'Cost' of Time sheet Cost field in employee. - added Cost to Application group task- 2531442
Resource calendars now more reliably identify the end of a work shift when schedule searches span multiple days, such as in monthly or yearly Gantt views. This helps avoid missing valid working time for employees who only work on one of the searched days.
Original PR description
Assign a search_range for calendar_end in the _adjust_to_calendar method in all conditions. The search_range was only assigned a value if the start and end are on the same date before. The _adjust_to_calendar method receives a start and end from midnight to midnight in the resource timezone. Start and end datetimes can be set on a different day via the Gantt view set in month or year for example. This commit ensures that a search_range is always assigned to find the calendar_end and not only when start and end are on the same day. This allows to find the end of a shift searched over two days if the employee is only working one day. task-2628876 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Time off entries that apply to multiple employees now display the employees directly in the list view using their avatars. This makes it easier for managers and HR users to quickly see who is included without opening each request.
Original PR description
A time off for multiple employees was not showing who the employees were in the list view. Now it shows the avatar of all employees in the list view. TaskID: 2674062 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
Employees can no longer have portal-only users selected as their time off manager. The selection is also limited to managers who have access to the employee's company, helping prevent incorrect approvals and access mismatches.
Original PR description
Removes the ability to select a portal user as time off manager for an employee. This also adds a domain to restrict the time off manager on users that have access to the employee's company. TaskId-2671420
This update makes it easier to assign multiple serial or lot numbers at once in manufacturing and subcontracting flows, including copy-paste support. It also adds a subcontracting dropship route and corrects availability calculations so planning uses the right unit of measure.
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
Employee availability and leave calculations now keep the correct timezone instead of accidentally using the first employee or resource timezone. The scheduling calculation has also been optimized by grouping similar resources, which can improve performance for companies processing many calendars or absences.
Original PR description
If no timezone is given to _attendance_intervals_batch, the timezone was overwritten by the first resource's timezone. Improves on _attendance_intervals_batch to profit more from batching. Resources are grouped by timezone since we know they will all have the same result except for when there are resource assigned attendances. Those have to be handled separately but are incoroporated in the same routine. TaskId-2674527
The tax field “Base Affected by Previous Taxes” is now only shown when debug mode is enabled. This keeps the regular tax configuration screen simpler for everyday users while preserving access for advanced troubleshooting or configuration needs.
Original PR description
Make tax field "Base Affected by Previous Taxes" only visible in debug mode. Task: 2608764
Odoo now reuses internal model lookup results during setup and skips unnecessary setup work for modules that do not define models. This can significantly reduce installation time for large databases with many modules installed, improving deployment speed and operational efficiency.
Original PR description
With a lot of module installed setup_models can be quite slow. One of the reason for that are the calls to resolve_mro. This operation is fast, but called for a lot of models/fields this become an important part of get_depends and setup_base. - This is call once for each models in setup_base - This is call more than once for each computed_field in get_depends. The use of a cache shows significative performance improvements. During the install of a database with all modules, the install times is reduced by ~20% setup_models of a full_install ~5 minutes before this pr ~2:30 minutes with first commit (mro cache) A slight improvement of init_models should be observed too, but negligeable. Second commit (skip modules without declared models) should slighly speedup install
Employees can now more easily see their overtime when clocking out, including both today's overtime and their total balance. Time off screens also show available extra-hours leave more clearly, helping employees understand how much overtime they can use as leave.
Original PR description
Adds more ways for the user to see his overtime hours. The name_get for leaves types would previously not show the number of hours available to the user for the extra hours time off type. This commit adds that special case of time off type. Improves on the display when closing an attendance to display today's overtime aswell as the total overtime the employee has.
Event-related screens now use clearer field names, helpful placeholder text, and more relevant filters and reporting measures. This makes it easier for users to create, review, and manage events, tickets, exhibitors, questions, and tracks with a more consistent interface.
Original PR description
Purpose ======= Improve UI of event module. Specifications ============== Add placeholders in multiple fields, change names in event_event module to be more consistent with each other, remove and add filters/measures in events and tracks. Task-2646692
Lunch managers can now send arrival notifications directly from confirmed lunch orders instead of messaging employees manually. This helps employees know when meals are ready and reduces extra coordination work for lunch managers.
Original PR description
There was no way for the lunch manager to notify users that their meal had arrived prior to this commit besides manually sending a message to the concerned users. There now is a dedicated button after the order has been confirmed by the lunch managed to send notifications. TaskId-2587476
Following or unfollowing a project no longer automatically adds or removes the user as a follower on every task in that project. This prevents accidental broad notification changes while still allowing explicit notification preference updates to apply to tasks the user already follows.
Original PR description
Currently, unfollowing a project removes the user from all the tasks he was following. Conversely, following a project or updating your notification preferences makes the user a follower of all the tasks of the project without distinction. These consequences are a bit extreme in case the user misclicked, or simply decided he no longer wanted to be a follower of every newly created task. In this commit, when unfollowing a project should not remove the user from the followers of all the tasks, and following a project should not add the user to the followers of all the tasks, neither should update the user's notification preferences. Task-Id: 2440659 PR: #67142 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
The Planning Analysis report now includes cost measures for allocated and effective hours, making it easier to compare planned work with actual effort costs. The report views and related labels were also simplified, with a bug fix to prevent errors when changing visible measures in the pivot view.
Original PR description
Added 'Allocated Hours Cost' and 'Effective Hours Cost' measures in the Planning Analysis report. Removed 'hours per employee' filter and default group by the employee. Currently, if hr_timesheet installed then employee cost appears on employee will now appear when planning also installed. Set decending order in graph of planning analysis. The string of the timesheet_cost field has been changed to 'Working Days' instead of 'Number of Working Days'. TaskID - 2531442
The event track screens now open in a more useful order, starting with the views most relevant to day-to-day event management. The graph view is also simplified by hiding fields that are not useful there, making event analysis cleaner and easier to use.
Original PR description
Purpose ======= Improve UI of event by hiding irrelevant fields in graph view, changing order of view_mode in event track to kanban,tree,form,gantt,calendar,graph,activity. Task-2646692
Warehouse users can now delete extra product lines that were added by scanning an item not originally included in a picking. This avoids awkward zero-quantity workarounds while keeping original picking lines protected from deletion.
Original PR description
Before this commit: opening a picking and scanning a product that isn't part of the picking => no way to remove it from the picking. Workaround was to set it to 0 quantity. This commit allows users to remove this extra move line via the edit (i.e. pencil button) view. Move lines that are part of the original picking are still not deletable and inventory adjustment lines are unaffected. Task: 2658903
Salespeople's subscription dashboard PDF reports are now generated using the standard reporting process instead of copying content directly from the web page. This makes the reports more reliable and easier to maintain without changing the core dashboard experience.
Original PR description
Before this commit, the pdf content of the subscription dashboard of salesmen was directly taken from the html view.
It allowed to easily create the report content but it is a bad practice. After this commit, the salesman PDF report will be generated in a more conventional way.
taskid: 2619562Odoo Social now automatically mentions the original Twitter/X author when replying, so responses appear in the correct conversation thread. The update also helps prevent repeated replies to the same tweet and gives clearer feedback when Twitter rejects a comment.
Original PR description
Purpose ======= Be able to mention someone if we answer to one of his tweet (post/comment). Before, all mentions were removed, but now, all mention will be removed in the comment except the mention…
Purpose ======= Be able to mention someone if we answer to one of his tweet (post/comment). Before, all mentions were removed, but now, all mention will be removed in the comment except the mention of the author of the post/comment which we are answering. Do not allow social users to answer to many times on the same tweet. Automatically add a mention (if not already present) when answering. So, this new behavior will fix the following issue. Bug fixed ========= In social Twitter, in the feed view, we can see the tweets that replies to our Tweet. When we reply to a Tweeter account (which is not our account), the Tweet will not displayed as a response on Twitter. 1. Take 2 Twitter accounts (account A and B) 2. Link the account A in Odoo 3. With the account A, write a post (tweet) 4. With the account B, go on tweeter.com and add a response bellow the first tweet 5. Go back to Odoo, in the feed view, and with the account A open the first "post" and in the "comments" replies to the tweet of the account B 6. Go on Twitter with the account A, the last response will not be displayed as a response to the tweet of the account B => Solution: mention the user in the answer Task-2293211
The edit payslip lines window now keeps horizontal and vertical scrolling together in one place. This makes it easier for payroll users to review and edit large payslips, especially on wide screens where the previous scrollbars could be awkward to use.
Original PR description
The scrollbar in the edit payslip lines wizard could be quite unusable in some cases. On large displays, if the payslip lines takes too much space both vertically and horizontally, both scrollbars would be separated from eachother. This commit makes it so that both scrollbars are on the same element in the view. TaskId-2659268
Transfer detail lines are now sorted by source and destination location so warehouse pickers can follow a more logical route. This makes picking work easier and more efficient, with related barcode tests updated for the new order.
Original PR description
Description of the issue/feature this PR addresses: Current behavior before PR: The transfer line order has no sense for a picker (it's in the order of the creation of the line) Desired behavior after PR is merged: We want to have the line of the detailed operation in the same order as the picker will be picking the But since the behavior as changed, we need some tweaks in the tests. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr