Thursday, April 22, 2021
2 changes · master
Enhancements to existing features
This update streamlines how Odoo handles internal fields on abstract models by avoiding fields that are not useful there. It helps prepare the system for future performance and maintainability improvements without changing day-to-day user workflows.
Original PR description
Magic and inherited fields are not really useful on abstract models. The _inherits specification is used anyway by models that inherit from those abstract models. The main goal of this change is to prepare a refactoring of models where fields are no longer duplicated on the registry classes, but fields defined on classes are used directly. But this new design cannot be applied to all fields: a field being overridden simply cannot be used directly. This branch improves the situation by avoiding unnecessary field overridings.
Financial reports can now separate positive and negative account balances when grouping results, instead of only looking at the overall total. This helps businesses produce balance sheets and financial reports that better reflect account-by-account positions, including French reporting needs.
Original PR description
The purpose is to overcome a limitation in the Financial Reports when accounts position depend on their balance. If globally the sum is positive, it does not take into account the individual balances. The Financial Reports are currently limitative and do not allow to split balances that are positive and negative. The computation is made on the domain globally. Task: 2502337