Tuesday, March 26, 2024
1 change · master
Enhancements to existing features
This update adds safeguards to discourage point-of-sale modules from directly using the shared POS state inside business data models. It helps reduce future maintenance risk and supports a cleaner, more reliable POS architecture without changing day-to-day user workflows.
Original PR description
*: all pos related modules The pos_store is a global variable that is used to store the current state of the POS. Before we were able to access it from the models directly, but this is not a good practice. For the moment a patch is added to keep the use of it in differents places, but in the future we should remove it from the models and use the pos_store only in the components. A eslint rule is added to prevent the use of pos_store in the models.