Tuesday, October 9, 2018
4 changes · master
Enhancements to existing features
This update standardizes how record names are retrieved across several Odoo apps by using the existing display name field instead of a more manual lookup. It should make the code more consistent and may improve performance in areas that process many records, without changing expected user-facing behavior.
Original PR description
[IMP] mail,crm,...: Replace occurences of name_get()[0][1] by display_name Purpose ======= display_name is equal to doing name_get()[0][1] Replacing name_get()[0][1] by display_name could be good for 2 things: - Uniformization of the code - Probable optimization if name_get is used inside a for loop on a recordset (as the values will be prefetched and put in the cache). TaskID: 1849250
This update standardizes how record names are retrieved across several Odoo business applications. It may slightly improve performance in repeated operations while keeping the visible names and user experience unchanged.
Original PR description
[IMP] mail,crm,...: Replace occurences of name_get()[0][1] by display_name Purpose ======= display_name is equal to doing name_get()[0][1] Replacing name_get()[0][1] by display_name could be good for 2 things: - Uniformization of the code - Probable optimization if name_get is used inside a for loop on a recordset (as the values will be prefetched and put in the cache). TaskID: 1849250
Resolved issues and error corrections
This fix prevents users from saving a fiscal year end date that does not exist, such as an impossible day and month combination. It helps avoid accounting setup mistakes that could lead to incorrect reporting periods or configuration errors.
Original PR description
We prevent setting a fiscal year end date which doesn't exist. opw-1890518 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
The accounting settings now block fiscal year end dates that do not exist, such as impossible day and month combinations. This helps prevent configuration mistakes that could affect financial period setup and reporting.
Original PR description
We prevent setting a fiscal year end date which doesn't exist. opw-1890518