Daily updates from Odoo
Navigate
Branch
Thursday, March 31, 2022
15 changes
Enhancements to existing features
The manufacturing work order tests were adjusted to reflect support for manual material consumption. This helps ensure the feature behaves reliably as manufacturing processes are validated, with no direct change expected for everyday users.
Original PR description
Adapt tests to support manual consumption in Mrp. Task-2687494
The Helpdesk website pages have been visually streamlined with simpler styling and a cleaner search results layout. This makes it easier for visitors to scan help content and find relevant answers across helpdesk-related pages.
Original PR description
This PR simplifies the SCSS of `website_helpdesk` & `website_helpdesk_*` modules. It also improves the overall layout of the search results. task-2777615
Appointment slot times are now automatically corrected when possible if a saved interval is too short or ends before it starts. This reduces disruptive error popups and helps users save valid appointment availability more smoothly.
Original PR description
Automatically adapt invalid slot interval if possible when saving to avoid in most cases a popup saying that something is incorrect in the slot list. The slot interval is invalid when it ends before it starts or its length is less than the appointment_duration. In that case, we try to change in priority the bound that was not changed by the user and if both were changed, we adapt the end bound. Adaptation is either [start, start + appointment_duration] or [end - appointment_duration, end]. Note that there are example where the interval cannot be adapted. For example: [22, 8] with an appointment time of 10h because [22, 22+10] and [8-10, 8] are not valid interval. Technical note: when an update is performed on multiple records at once, the auto correction is disabled because there is most of the time not one solution. Task-2791265
The payroll dashboard has been redesigned to make key information easier to read and act on, including clearer notes, warnings, employee trends, and payslip batch details. Payroll users can now collaborate on dashboard notes more smoothly, see better demo examples, and get more useful contract and cost insights directly from the dashboard.
Original PR description
##PURPOSE## We've merged the dashboard for the payroll. But it still needs more work and improvement. task-2759601
This update standardizes how links are created inside record discussions across several business apps. It helps keep messages and cross-references consistent, making it easier for users to navigate between related documents such as invoices, tasks, repairs, payroll items, subscriptions, and helpdesk records.
Original PR description
Community PR: https://github.com/odoo/odoo/pull/84866
The appointment app now offers a clearer booking experience, better preservation of filters, and more flexible slot availability controls. Users benefit from fewer confusing past-time slots, improved sharing options, and refreshed backend and website screens.
Original PR description
# Purpose Improves the global design of the app and some fields to improve the usability # Specifications - Add a boolean field on each appointment type that allows the user to enable/disable the check of the work_hours of the users for the slots computation - Add a field that is hidden by default in the slot tree view to restrict some slots to some users. - Keep the filters and params in URL when clicking on "All Appointments" - Add an overlay when in slots-selection mode that encompasses the past - Improve design on the backend and frontend - Provide some fixes and slightly improve tests - For more info see each commit # Links Task-2695730
The Helpdesk screens were refreshed to rely more on standard layout building blocks and less on custom styling. This makes the interface more consistent, fixes small display issues including Safari table sizing, and improves readability on smaller screens.
Original PR description
This PR simplifies the SCSS and reorganizes the Bootstrap classes in the XML to use as little raw SCSS as possible. It also improves minor layout issues. task-2754091
Odoo Enterprise modules were updated to match a backend reorganization of web controller files. This keeps existing features working with the new structure and has little direct impact on daily users.
Original PR description
The odoo.addons.web.controllers.main python module have been splitted over multiple files on the basis 1 controller = 1 file. In this work we adapt all modules to use the new imports. A non-exhaustive list of where stuff have been moved: * main.Home --> home.Home * main.Session --> session.Session * main.WebClient --> webclient.WebClient * main.clean_action --> action.clean_action * main.ensure_db --> home.ensure_db The complete list is accessible in odoo.addons.web.controllers.main. Companion of odoo/odoo#87571
Resolved issues and error corrections
The Planning shift window now shows its action buttons with proper spacing. This makes the interface easier to read and reduces the chance of users clicking the wrong button.
Original PR description
…ave a space Before this commit, In planning_view_form_in_gantt, buttons did not have padding This commit fixes the issue by adding a padding to the button task-2792884
Code cleanup and technical improvements
This update removes obsolete code from several accounting-related modules that was no longer being used. It helps keep the system easier to maintain without changing day-to-day business workflows.
Miscellaneous changes
Before this commit it was not possible to change/extend the domain for subscriptions to invoice. By adding it in a separate function, we can do a clean extend of the domain. -- I confirm I have signed the CLA and read the PR guidelines at [www.odoo.com/submit-pr](http://www.odoo.com/submit-pr) Forward-Port-Of: odoo/enterprise#25757 Forward-Port-Of: odoo/enterprise#25563
Original PR description
Before this commit it was not possible to change/extend the domain for subscriptions to invoice. By adding it in a separate function, we can do a clean extend of the domain. -- I confirm I have signed the CLA and read the PR guidelines at [www.odoo.com/submit-pr](http://www.odoo.com/submit-pr) Forward-Port-Of: odoo/enterprise#25757 Forward-Port-Of: odoo/enterprise#25563
File was not deleted in forward ports of commit https://github.com/odoo/enterprise/pull/24029/commits/499a95c33f336506b1fe9dd143715ed3c1344cfc Task: 2752565 Forward-Port-Of: odoo/enterprise#25653 Forward-Port-Of: odoo/enterprise#25153
Original PR description
File was not deleted in forward ports of commit https://github.com/odoo/enterprise/pull/24029/commits/499a95c33f336506b1fe9dd143715ed3c1344cfc Task: 2752565 Forward-Port-Of: odoo/enterprise#25653 Forward-Port-Of: odoo/enterprise#25153
A user can't be available in the past, so the slots shouldn't be counted as available. Forward-Port-Of: odoo/enterprise#24008
Original PR description
A user can't be available in the past, so the slots shouldn't be counted as available. Forward-Port-Of: odoo/enterprise#24008
Forward-Port-Of: odoo/enterprise#25502
Original PR description
Forward-Port-Of: odoo/enterprise#25502
Steps to reproduce the bug: - Create a storable Product “P1”: - Add a BOM with component: - “C1”, $50 of cost, 1unit needed - “C2” $20 of cost, 1 unit needed 1:/ - Create a MO: - select p1 with 10unit to produce - Confirm and validate 2:/ - Change the cost of “C1” to $30 - Create a second “MO”: - Select P1 with 20 units to produce - Go to MRP > Reporting > Production analysis there is a pivot table with different measures. Problem: All avera
Original PR description
Steps to reproduce the bug: - Create a storable Product “P1”: - Add a BOM with component: - “C1”, $50 of cost, 1unit needed - “C2” $20 of cost, 1 unit needed 1:/ - Create a MO: - select p1 with…
Steps to reproduce the bug:
- Create a storable Product “P1”:
- Add a BOM with component:
- “C1”, $50 of cost, 1unit needed
- “C2” $20 of cost, 1 unit needed
1:/
- Create a MO:
- select p1 with 10unit to produce
- Confirm and validate
2:/
- Change the cost of “C1” to $30
- Create a second “MO”:
- Select P1 with 20 units to produce
- Go to MRP > Reporting > Production analysis there is a pivot table with different measures.
Problem:
All average cost measurements are incorrect, for example, the current AVG/unit cost calculation is:
((50 + 20) + (30 + 20)) / 2 Nb production = 60
The average should take into account the quantities produced in each MO,
and not simply the number of manufacturing orders. So the correct calculation:
(((50+20)*10) + ((30 + 20)*20)) / (20 + 10) = 56.67
The SQL query is correct, it is when applying the read_group that the calculation is incorrect,
we should override it to make a personalized calculation of the average
opw-2767504
Forward-Port-Of: odoo/enterprise#25676
Forward-Port-Of: odoo/enterprise#25594