Wednesday, December 16, 2015
3 changes · master
Enhancements to existing features
The sales margin feature has been modernized and reorganized to align with Odoo's newer framework standards. This improves maintainability and keeps margin reporting and tests reliable without changing the core business workflow.
Original PR description
Task: https://www.odoo.com/web#id=13378&view_type=form&model=project.task&menu_id=3942&action=327 Pad: https://pad.odoo.com/p/r.bSJGE9rAhvMGNKC7
Code cleanup and technical improvements
The signup and related login account functionality has been reorganized and updated to use Odoo's newer internal framework. This should make the authentication signup area easier to maintain and evolve, with limited direct impact on day-to-day users.
Original PR description
Task : https://www.odoo.com/web?#id=12144&view_type=form&model=project.task&action=327 Pad : https://pad.odoo.com/p/r.RK97wtM3mY68aNre
The pricelist calculation code was reorganized into smaller, clearer parts without changing the intended business behavior. This makes pricing logic easier to maintain and easier for other modules to extend in the future.
Original PR description
Logic factored out from method '_price_get_multi' of product.pricelist model: - fetching pricelist items for specific version and products - checking if rule is applicable for specific product - calcaulation of price modification by specific rule - getting base price from specific rule - getting base price from partner section - getting base price from other pricelist - getting base price from file of product model - getting correct pricelist.version for specified pricelist and date Reasons: - better structure of code. - To ease way other modules could extend pricelist functionalyty.