Monday, December 11, 2023
2 changes · master
Code cleanup and technical improvements
The Point of Sale interface has been simplified by removing a special handling mechanism for temporary screens. These screens now behave like regular screens or dialogs, reducing complexity and making future maintenance less error-prone.
Original PR description
The pos uses a special mechanism to handle the so called "temp screens". These are screens that are not considered part of the normal flow. This mechanism is overly complicated and error prone. Apart from this, the whole idea of temp screens is not really needed, as these screens can be considered as normal screens, or as dialogs. This is what we do in this commit: we remove the temp screens mechanism and adapt all the temps screens to be normal screens or dialogs. Task 3613049 https://github.com/odoo/odoo/pull/141293
This change reorganizes internal mail logic so information is handled closer to the relevant business records. It should make future mail-related changes simpler and safer, with little direct impact on day-to-day users.
Original PR description
All data are related to models, and code using it is simpler by just relying on record at hand. https://github.com/odoo/odoo/pull/145348