Friday, June 21, 2024
5 changes · master
Code cleanup and technical improvements
This change cleans up internal website tour testing code by removing helper functions that were either unused or duplicated existing error logging. It does not change customer-facing behavior, but helps keep the test code easier to maintain across affected Odoo apps.
Original PR description
The tourError function was removed because it duplicates console.error() which throws exactly the same kind of error on the runbot. The getDifferentParents function was removed from tour_utils as it is no longer used. The triggerPointerEvent function has been removed from tour_utils as it is no longer used. task~3974087 https://github.com/odoo/odoo/pull/170158
The Documents app was internally adjusted to keep file delivery compatible with an upcoming platform change. This reduces the risk of disruption when the older attachment streaming method is removed, with no expected change for end users.
Original PR description
refactor the override of _record_to_stream, so it won't be affected when Stream.from_attachment api is removed. odoo/odoo#157249
This change updates internal guided-tour test definitions to use a simpler way of checking whether page elements are present. It reduces maintenance complexity across several business apps without changing how end users use the system.
Original PR description
In order to simplify the towers API, it was decided to remove the extra_trigger key from the steps. To check that an element is in the DOM, simply create a step with a trigger. task~3974087
The spreadsheet test files were moved into a legacy test structure as part of an internal cleanup. This helps keep testing organized while preserving existing spreadsheet behavior for users.
This change updates Web Studio and WhatsApp configuration screens to stop using an older clipboard-copy component. It supports a broader cleanup of the interface code, reducing maintenance while keeping the affected business workflows essentially unchanged.
Original PR description
This commit is the enterprise part of the CopyClipboardText widget removal PR (https://github.com/odoo/odoo/pull/170010) task-3964629