Daily updates from Odoo
Thursday, November 2, 2023
20 changes · 17.0
Enhancements to existing features
Text filters in spreadsheets can now be restricted to predefined values from a cell range instead of allowing free-form text entry. This makes filters easier to use by providing a dropdown of valid options and enables parametric dashboards where users can select from predefined values without needing to know exact technical parameters.
This update enhances the Frontdesk app's user interface with improved design and functionality. It fixes two issues: a blank page that appeared when switching languages, and an empty description sidebar that remained visible even after content was removed. The app now has better visual styling and improved usability.
Original PR description
### Frontdesk UI review : This PR reviews and enhances the user interface of the new Frontdesk app, focusing on the following points: - Optimizing the app icon files - Adding frontend bundle in `assets_frontdesk` to able to use Bootstrap SCSS variables and the Odoo UI icons. - Reviewing the design and structure to make it more user-friendly. --- ### Issue 1 : blank page when using lang. switcher Prior to this PR, switching to another language returned a blank page. This PR removes the `;` at the end of the url, which created the error. --- ### Issue 2 : hide empty description sidebar Steps to reproduce: - Add content in the sidebar description. - Save - Remove the content - Save again The sidebar description is still displayed but is empty. This is because even if you remove all the content in the input, it still leaves at least `<p><br></p>`. This PR adapts the condition to take this case into account. --- task-3511096
This update improves the report editor in Web Studio by adding a new Dynamic Table feature that allows users to easily insert tables for related data (x2many fields). The editor now correctly handles undo/redo operations and automatically selects the appropriate data source when inserting fields into tables, making report creation more intuitive and reliable.
This update adds a new return button action (O-BTN.return) to the barcode actions reference guide. This enhancement provides warehouse staff with an additional barcode option for processing returns, improving the efficiency of return workflows in the barcode scanning system.
This update improves how the customer statements report is configured by removing complex Python code and using a simpler template extension approach instead. This change prevents conflicts with other customizations of the partner ledger report and makes the system more maintainable for future enhancements.
Original PR description
Adding the display config in this way, with a regular inherit will conflict with other eventual extension of the partner ledger report. As this customization targets the standard report itself by just modifying the existing template, we can remove the python code changing the template and instead simply use an extension inherit on the template to add the new button.
This update adds a special product list feature to the POS configuration, allowing the system to distinguish between regular products and special ones. This enables the POS to intelligently prompt users to create products when none exist, improving the user experience during initial setup and configuration.
Original PR description
pos*: pos_blackbox_be, pos_preparation_display In this commit, we add the special product list to pos_config. This is done so that we can see if the db has any product other than the special ones to display the message to the user to create product or not in the PoS. Community PR: odoo/odoo#140650
Users can now download and use barcode commands directly from MRP settings, enabling barcode scanning for manufacturing operations. This enhancement streamlines the barcode workflow by making barcode functionality available in the MRP module, allowing users to scan barcodes to fulfill manufacturing requests more efficiently.
Original PR description
Before this commit ================== barcodes were not available for the MRP when clicking on 'print barcode command' After this commit ================= In this commit we added barcodes for MRP, so now the user can download barcodes from MRP settings. Also added actions that can fulfil scanned barcode requests. task - 3455363
Resolved issues and error corrections
Fixed an issue where the copy-to-clipboard feature in the Knowledge module's /clipboard block wasn't properly capturing dynamically edited content. The fix switches from using a static copy button to directly using the browser's clipboard API, ensuring users can reliably copy content they've edited in real-time.
Original PR description
In [1], the `CopyButton` was introduced in the `/clipboard` block of `Knowledge` to replace `ClipboardJS`, but the content to copy is dynamic in edition so the content to copy should be given by a function and not a static value. [1]: https://github.com/odoo/enterprise/pull/47154 task-3571973
This fix resolves an error that appeared when users tried to open a payment link WhatsApp template in the system. The issue occurred when both the account tax and WhatsApp modules were installed together. After this fix, users can now open payment link WhatsApp templates without encountering any errors.
Original PR description
before this commit, on opening payment link whatsapp template, a traceback is shown to end user. * install account_avatax and whatsapp modules * whatsapp-> templates -> whatsapp templates * open payment link whatsapp template * traceback is shown  after this commit, no traceback is shown on opening payment link whatsapp template Forward-Port-Of: odoo/enterprise#47565
Fixed an issue where the product page layout was not properly adapting to the website width when all filter options (attributes and categories) were disabled in the Rental module. The page now correctly adjusts its width based on whether filters are actually available, improving the user experience and visual consistency of the shop page.
Original PR description
Before this PR, On the Products page(/shop), when all the options on the left panel(attributes and categories) are disabled, then the width of the page is not adapted to the width of the website. The issue occurs after installing the Rental(website_sale_renting) module because we set the value for [hasLeftColumn](https://github.com/odoo/enterprise/blob/16.0/website_sale_renting/views/templates.xml#L217) directly, so we always get hasLeftColumn(left panel) even after all options are disabled After this PR, we set the value for the left panel based on the condition so that when all the options are disabled the Product page adapts the width of the website task-3267971 Forward-Port-Of: odoo/enterprise#41616
This fix resolves an issue where scanning serial numbers for multiple components in a manufacturing order was incorrectly counting quantities. When scanning components with different serial numbers, the system was combining them into a single line item instead of tracking them separately. The fix ensures that each component is properly counted and the production order closes correctly when all components are scanned.
This update fixes a display issue where forum posts shared from helpdesk tickets were missing a space between the post name and the forum post indicator. When users share a helpdesk ticket to a forum and view the post, the text now displays correctly with proper spacing in the ticket's activity log.
Original PR description
Steps: - In helpdesk ticket click on share on forum - click on create and view post - it will redirect to website - click back and see the chatter of the helpdesk ticket Issue: - missing space between name of the post and forum post created Fix: - we have added a space from the place where the message is posted task-3463622 Forward-Port-Of: odoo/enterprise#46224
A test in the Web Studio module was failing after October due to a hardcoded month value in the test code. This fix temporarily disables the problematic test to prevent system failures, with plans to properly refactor it later.
Original PR description
The web_studio clickbot qunit test fails after October because of a hard coded month. It needs to be refactored but let's skip it in emergency. Forward-Port-Of: odoo/enterprise#49983
A technical issue was preventing account reports from properly saving configuration options due to incompatible data format. The team resolved this by removing an unused option that was causing the problem, ensuring reports function smoothly without affecting any user-facing features.
Original PR description
A bug was caused by trying to converting the options that contained a set into json. We fix it by removing the option that used the set as it doesn't seem to be used anymore.
This fix resolves an issue where the representation fees calculation was trying to access a field that only exists when the Belgian contract salary module is installed. The functionality has been properly reorganized so that the representation fees behavior is now correctly handled within the Belgian contract salary module, preventing errors when this optional module is not active.
Original PR description
Before correction : The function _get_representation_fees_threshold used a field from hr_job. But this field exist only if l10n_be_hr_contract_salary is installed After correction : Put the behaviour of this function linked to this field in l10n_be_hr_contract_salary.
This fix reorganizes the timesheet menu structure to give timesheet managers access to the tips menu, which was previously unavailable to them. This improves manager capabilities by allowing them to view helpful tips and guidance within the timesheet application.
Original PR description
This PR changes the timesheets menuitems order and groups so that the tips menu is available to timesheets managers, which was not the case before. task-3579920
Fixed an issue where employee avatars were not displaying in the Planning module for users without direct access to employee records. The system now automatically falls back to public employee information to ensure avatars are always visible, improving the user experience for all planning team members.
Original PR description
In planning, avatar can be displayed for resource.resource, hr.employee and hr.employee.public records. Avatar of resource.resource records is a computed field that return the avatar of the hr.employee record linked to the resource if any. The problem is that not all user of planning have access to hr.employee records. This was not a problem in versions <16.0 but since, https://github.com/odoo/odoo/commit/85bd6e62a59fef3086a9ae2138209cc73f086227, access rights are checked when accessing an image through the route /web/images/<model>/<id>/<field>. This commit avoids empty avatar for employees by falling back on hr.employee.public avatar if the current user has no access to hr.employee model. Forward-Port-Of: odoo/enterprise#50006 Forward-Port-Of: odoo/enterprise#49560
This fix resolves an issue where creating a new human resource in the Planning module was not automatically generating a corresponding employee record. The problem was caused by a duplicate field declaration that prevented the necessary context from being passed. Now, when users create a human-type resource, an employee will be automatically created as expected.
Original PR description
Steps: - Install Planning module - Open the Planning module - Create the new resource - Then go to the Configuration's Employees - There is not created employee through the resource Before this commit, At the time of creating the new resource , shouldn't creating a human resource should automatically create an employee for that resource. This commit ensure that : Creating the human type resource will automatically creates an employee Task-3508241 Forward-Port-Of: odoo/enterprise#47589
This fix resolves an error that occurred when exporting Trial Balance reports to PDF after selecting a journal group. The system was attempting to save incompatible data (a set) that couldn't be converted to the required format, preventing the export from completing. The fix ensures all report data is properly formatted for export.
Original PR description
Create a test account journal group Go to Accounting -> Reporting -> Trial Balance Ensure the journal group is selected Click on the PDF export button Error will raise TypeError: Object of type set is not JSON serializable” This occurs because in the process of gathering options initializer the system add a `set` to the options, which is not json serializable opw-3564632 Forward-Port-Of: odoo/enterprise#49876
Code cleanup and technical improvements
This update replaces an outdated search interface component in the Twitter integration with a modern, more maintainable version. The change removes legacy code dependencies and improves the overall system architecture without affecting how users interact with the feature.