Monday, October 20, 2025
2 changes · master
Code cleanup and technical improvements
AI agents are now identified separately from regular user activity, so they no longer appear as if they have a live presence status. This keeps availability indicators focused on real users while still allowing the interface to recognize AI agents correctly.
Original PR description
The `im_status` field should only hold information regarding the activity of a user, and AI agents don't have activity in that sense as they are always online. We therefore set the `im_status` of ai agents to `bot` (signifies opting out of the activity tracking) and pass the `agent_ids` field client side as a mean of identifying AI agent partners.
The Knowledge app no longer uses a custom attachment-sharing step for article discussions because that token handling is now covered by the standard platform behavior. This reduces duplicated logic and helps keep access handling consistent for public and portal users.
Original PR description
This commit removes the `_to_store` override on `ir_attachment` which adds an access_token for public/portal users in knowledge article threads. Token handling is managed by the _to_store_defaults raw_access_token since [1]. [1] https://github.com/odoo/odoo/pull/204830 task-4676413