Monday, July 15, 2024
2 changes · master
Code cleanup and technical improvements
This internal cleanup makes messaging-related data use the same names across Python and the web interface. It reduces duplicate technical labels and prepares the system for future improvements in how related records are handled, without changing day-to-day user workflows.
Original PR description
Not having the correct name based on python model name makes it much harder to implement future improvement such as auto-formatting of relations (PR in progress: https://github.com/odoo/enterprise/pull/66544) due to python having no knowledge of JS model definitions. This also allows to remove a lot of unnecessary type and model keys for channel and persona, because they can be deduced from the model name. Part of task-3605717 https://github.com/odoo/odoo/pull/172731
This change simplifies the internal tour testing setup by moving disabled-element checks from each tour step definition into the shared action helpers. It keeps test behavior consistent while reducing maintenance across business apps such as Approvals, Payroll, Planning, Studio, Inventory, Rentals, and Appointments.
Original PR description
To simplify the tours API and the number of keys a tour step can have, it was decided to remove the allowDisabled key. In reality, it was not really removed but moved to the tour helpers side. Indeed, when performing the action, we check at that moment whether the targeted element is enabled or not depending on the action that is performed (click, dblclick, draganddrop,...). If the element isn't enabled, it throws an error. task~3974087 https://github.com/odoo/odoo/pull/171028