Tuesday, April 9, 2024
1 change · master
Code cleanup and technical improvements
This update renames an internal model property from `_store` to `store` across related Odoo Enterprise modules. It makes the code easier for developers to understand and maintain, with no expected change to everyday user workflows.
Original PR description
It gave the wrong impression that using `this._store` in model was not ok... And another argument was that probably someone would like to name a custom field `store` thus reserving the name with prefix... But these arguments are weak and this name just scares the devs from accessing the store in models. This commit removes the prefix `_` to be more welcome. https://github.com/odoo/odoo/pull/161128