Wednesday, January 31, 2024
11 changes · 17.0
Enhancements to existing features
Odoo now marks copied HTML content in a more compatible way so it can be recognized when pasted back into Odoo. This helps clipboard-based content, such as Knowledge copy actions, keep the right formatting and behavior without affecting paste into other apps.
Original PR description
The `OdooEditor` handles `html` content on paste differently if it comes from Odoo or not. Currently, to detect content coming from odoo, `copy` and `paste` event handlers manage a custom data type…
The `OdooEditor` handles `html` content on paste differently if it comes from Odoo or not. Currently, to detect content coming from odoo, `copy` and `paste` event handlers manage a custom data type named `text/odoo-editor`. In Knowledge, there is a `Copy` button on the `/clipboard` command which writes `html` content in the clipboard. The issue is that `text/odoo-editor` is not a valid MIME type and therefore it is not possible add data under this key in a `Blob` for the `ClipboardItem` during `clipboard.write`. This commit suggests an alternative way of handling of Odoo `html` content by prefixing it with a html comment node containing the custom MIME type: `<!-- text/odoo-editor -->`: - It won't cause an issue if the content is pasted outside Odoo (since the comment nodes are usually not shown) - The `paste` handler will treat the `html` properly as Odoo content Some test functions are modified so that `clipboardData.getData` properly returns an empty string instead of `undefined` or `null` in case a data key that is not present is accessed. task-3700875
Resolved issues and error corrections
The automated test for the front desk check-in process was failing because form fields weren't being filled in time during the tour. A delay has been added between test steps to allow the registration form to fully load and mount before attempting to fill in the fields, ensuring the check-in button works correctly.
Original PR description
In the tour, we navigate from the registration form and then go back to it. Steps are done fast and the new registration form does not manage to be loaded (and/or old form is not unmounted) by the time the registration fields are filled from the tour steps. As a result registration form is not properly filled and final 'Check in' button fails. To fix this, we add step_delay when running the tour.
Miscellaneous changes
Issues ------ All manufacturing orders are not having a start date This commit ----------- - Fix not updating start date on manufacturing orders - Migration update data --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#131435 Forward-Port-Of: odoo/odoo#128043
Original PR description
Issues ------ All manufacturing orders are not having a start date This commit ----------- - Fix not updating start date on manufacturing orders - Migration update data --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#131435 Forward-Port-Of: odoo/odoo#128043
Fixed the vertical alignment of table headers in the budget section of project updates, particularly when viewing on mobile devices. The budget table headers are now properly centered, improving the visual presentation and usability of the budget planning feature.
Original PR description
Steps to reproduce: - first install bridge module 'project_account_budget' - open any project and go to project updates - in right side panel you see 'Add Budget' button - add some budget plan and switch to mobile Issues: - heading of table are not vertically centered Solution: - Add style to vertically align center of heading Task: 3633405 Forward-Port-Of: odoo/enterprise#55163 Forward-Port-Of: odoo/enterprise#52525
The Danish EDI module has been renamed to eliminate confusion with other Danish electronic data interchange modules. This organizational change improves system clarity and reduces the risk of users selecting the wrong module for their needs.
Original PR description
This commit renames the l10n_dk_edi module name to avoid naming confusion between this module and the other DK edi modules.
Fixed a display issue in the timesheet section on mobile devices where the employee avatar and name were appearing too close together. This improves the readability and user experience when viewing timesheets on mobile phones and tablets.
Original PR description
Steps to reproduce: - open any task from project in form view - add timesheet to that task - switch to mobile view - under the timesheet section in notebook Issue: - there is no space between avatar and employee name Solution: - add space between avatar and employee to make user friendly view Task: 3633405 Forward-Port-Of: odoo/odoo#145775
This update corrects an inconsistent test in the Point of Sale loyalty program module. The fix ensures that automated tests run reliably and accurately, helping maintain the quality and stability of the loyalty features used in retail operations.
Original PR description
This commit fix unconsistent test. https://runbot.odoo.com/web/#id=54900&view_type=form&model=runbot.build.error&menu_id=405&cids=1 opw-3583174 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr Forward-Port-Of: odoo/odoo#151445 Forward-Port-Of: odoo/odoo#150101
This update fixes an unreliable test in the live chat feature that was causing intermittent failures when testing message reactions. The test now properly waits for chat messages to be saved before attempting to add reactions, making the feature more stable and reliable for users.
Original PR description
The `test_complete_chatbot_flow_ui` ensures it is possible to add reactions to the chat bot messages once the thread is saved on the server. This test was sometimes failing because the condition that is used to wait for the thread to be persisted is incorrect: it checks that a message with the user response exists but the chat bot question also contains the response text. This PR fixes the issue by using the `contains` helper instead: it will wait until the expected state is reached. fixes runbot-55291
This update fixes a display issue in the Project Profitability section when viewed on mobile devices. Table headings were not properly centered vertically, making the interface look misaligned. The fix adds proper styling to ensure headings are centered, improving the mobile user experience.
Original PR description
Steps to reproduce: - first install bridge module 'project_account_budget' - open any project and go to project updates - in right side panel you see 'Profitability' button - click the profitability and switch to mobile view Issues: - heading of table are not vertically centered Solution: - Add style to vertically align center of heading Task: 3633405 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 Forward-Port-Of: odoo/odoo#151164 Forward-Port-Of: odoo/odoo#148425
This update fixes an issue in the website sales module where alert headers were being displayed to users who shouldn't see them. The fix ensures that only relevant users receive alert notifications, improving the user experience by reducing unnecessary visual clutter and confusion on the sales pages.
Original PR description
Forward-Port-Of: odoo/odoo#151746 Forward-Port-Of: odoo/odoo#151571
backport of 47b0b19 Record rule `hr_appraisal_goal_own` uses `is_manager` which is a non-stored computed field. This issue was fixed in 17.0 but the issue was introduced in saas-16.4. opw-3653746 Forward-Port-Of: odoo/enterprise#55388
Original PR description
backport of 47b0b19
Record rule `hr_appraisal_goal_own` uses `is_manager` which is a non-stored computed field. This issue was fixed in 17.0 but the issue was introduced in saas-16.4.
opw-3653746
Forward-Port-Of: odoo/enterprise#55388