Monday, April 25, 2022
4 changes · master
Enhancements to existing features
Odoo now handles missing default values more efficiently when many records are created at once. This prevents duplicate sequence numbers in batch-created records and reduces repeated database lookups, especially for product and partner-related workflows.
Original PR description
`_add_missing_default_values` is made to work in batch. Models with a sequence can take advantage of that to increase the sequence for each new record in the batch. Before this commit, all records…
`_add_missing_default_values` is made to work in batch. Models with a sequence can take advantage of that to increase the sequence for each new record in the batch. Before this commit, all records created in a batch would have the same sequence if no sequence was provided to `create`. The new sequence is computed after the parent `_add_missing_default_values` instead of before (or instead of in `create`) to keep the possibility to have the default value coming from other means, as computed in `default_get`. The opportunity is also taken to change the definition of some defaults methods that would lead to the execution of queries, because those queries would be done for each record in the batch. This is typically the case for defaults that use `ref` which does an `exists` (as opposed to `xmlid_to_res_model_res_id`) or it is obviously also the case for the defaults doing a `search` directly. Indeed the result of these queries would then either be read or be added as a many2one, both of which will already check the existence of the resource. The focus of this commit was on products and partners, but the same logic can be applied to other models if they have such defaults and the performance of their batch create is important.
The chatter area now makes the attachment action easier to recognize and use. This helps users find and manage document attachments more confidently during everyday communication workflows.
Original PR description
task-2413814
Project task starring is now presented as priority, making the purpose clearer for users. Task assignment dates are cleaned up when assignees are removed, collaborators gain a helpful action shortcut, and task calendars can now be viewed by year for broader planning.
Original PR description
- The starred field was renamed as priority. - The assigned date is now set back to False when the user is unassigned from the task - An action helper was added to the collaborators view - The year mode was added to the calendar view of tasks task-2802506 -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Activity cards have been updated to follow the latest interface guidelines in Approvals, Documents, Sign, and VoIP. This creates a more consistent experience for users when reviewing and acting on activities across these apps.
Original PR description
* = approvals, documents, sign, voip