Tuesday, October 9, 2018
2 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