Tuesday, April 18, 2023
4 changes · master
Enhancements to existing features
User mention suggestions in Mail now wait briefly before searching, instead of running a lookup after every typed character. This reduces unnecessary background activity and should make composing messages smoother, especially in busy conversations.
Original PR description
Before this commit, when mentionning a user, `get_mention_suggestion` would be called for each keypress after the "@". This PR add a debounce of 250ms before calling `get_mention_suggestion`.
Odoo now allows the author of automated tracking messages in Mail to be set explicitly. This helps businesses keep message history clearer and more accurate when changes are logged by another process or user context.
Original PR description
[IMP] mail: add the ability to set the author of the tracking message A new `_track_set_author` method is now available to explicitly set the author of the tracking messages. Related Enterprise PR: odoo/enterprise#38986
The accounting setup process now detects customized template behavior automatically instead of relying on a fixed internal list. This makes the Italian withholding setup easier to maintain and reduces the risk of future configuration issues when accounting templates evolve.
Original PR description
Added some new function on the Chart Template to get which template functions have been subclassed. This new function avoids the post_init hook of l10n_it_edi_withholding to have a hardcoded list of the models.
OCR-related updates in document chatter will now consistently appear as posted by OdooBot, regardless of whether the refresh was started manually or automatically. This avoids confusion from messages previously appearing under different authors such as the user or Public User.
Original PR description
There was an inconsistency about the author of the update message posted in the chatter when the OCR filled the document. If the user manually clicked on the "Refresh" button, they would be set as the author, whereas if the refresh was performed automatically (i.e. by the cron or the webhook), "Public User" would be the author. Now, OdooBot will always be the author. Community PR: odoo/odoo#117073