Monday, February 22, 2021
2 changes · master
Enhancements to existing features
This update streamlines how Odoo manages automatic record tracking fields and relational field updates. It reduces unnecessary database work during saves, which can improve performance and make system behavior more predictable without changing user workflows.
Original PR description
This proposes * a refactoring that simplifies the hacks dealing with `_log_access` fields, also known as "magic" fields; * a refactoring that reduces calls to `flush()` when updating x2many fields.
This change lets Odoo calculate certain fields directly in the database, making them faster and easier to use in grouped reports. It is especially useful for values that change over time and should not be permanently stored, improving reporting flexibility without adding storage overhead.
Original PR description
Comparision with regular computed fields: 1. it work faster 2. allows read_group without making field storable --- task-1915411 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr