Friday, January 11, 2019
1 change · master
Enhancements to existing features
This update changes the internal structure of Point of Sale JavaScript classes to better match the rest of Odoo's framework. It should make future Point of Sale add-ons and customizations easier to build and maintain, without introducing a visible feature change for end users.
Original PR description
All JS classes that make use of `Backbone.Model` have been replaced by `web.Class` + `web.mixins.PropertiesMixin`, which, essentially is the same, but makes it much easier to extend, since it now has the `this._super()` and `.include()` facilities, and match the rest of the framework. This should make POS submodules much less painful to write. I wanted to drop backbone, but Odoo still uses `Backbone.Collection`, and I don't really know which core framework alternative would fit there, if any. -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr @Tecnativa @ged-odoo @chienandalu