Daily updates from Odoo
Monday, January 6, 2025
1 change · master
Code cleanup and technical improvements
The Point of Sale system’s internal data handling has been reorganized to make the code easier to maintain and extend. This should not change day-to-day behavior for users, but it helps future updates across related Point of Sale features be delivered more reliably.
Original PR description
In this PR, we refactor the related_models module. There is now `Models` class that contains all the models. Also, a `CRUD` class is introduced to represent each model. We can get the model records from the `CRUD` methods. This refactoring is introduced so that the `Models` and the `CRUD` methods don't need to accept the instances as first param. `this` becomes usable in the `Models` and `CRUD` methods. Related: https://github.com/odoo/odoo/pull/189500