Daily updates from Odoo
Monday, May 6, 2019
3 changes
Code cleanup and technical improvements
The eLearning area has been adjusted to better organize how slide and course upload features are loaded and managed. This should make the course content upload experience easier to maintain and support future improvements with minimal user-facing disruption.
The search panel category default selection logic was reorganized into a dedicated internal function. This does not change the user experience directly, but it makes the web interface easier to extend and maintain for future features.
Original PR description
This commit extracts the logic of the selection of the default value for search panel categories into a private function so it can be hooked in other modules. task: #1959112
Accounting report settings were reorganized to make reports easier to extend and maintain. The General Ledger was also optimized, reducing processing time and database queries in tests, which should make large reports load faster.
Original PR description
Refactoring of the options ==================== - Manage the options with a domain instead of passing all keys in the context in order to use the _query_get. - Manage filter_date always with a dates…
Refactoring of the options
====================
- Manage the options with a domain instead of passing all keys in the context in order to use the _query_get.
- Manage filter_date always with a dates range but decide the mode ('single' or 'range') directly in the filter_date. It improves the date management ('date_from'/'date_to' are always in options['date']) and the comparison management (comparison with single date + previous period).
- Allow to be more extensible with new features. E.g: filtering on accounts in the general ledger could be simply added to the options domain instead of managing this filter at each _query_get.
- Add methods allowing to retrieve all selected companies/journals more easily.
- Reorder the file to have all method having an options-purpose at the top of file.
Refactoring of the General Ledger
==========================
- Speed up the General Ledger (see commit for more details).
task:
https://www.odoo.com/web#id=1888408&action=333&active_id=967&model=project.task&view_type=form&menu_id=4720