Thursday, August 21, 2025
1 change
Code cleanup and technical improvements
The AI chat creation logic has been moved to the AI agent area where it more naturally belongs. This is an internal cleanup that should make the AI chat code easier to maintain without changing how users interact with chat.
Original PR description
`_get_or_create_ai_chat` method was defined on `discuss.channel` with `@api.model` decorator. `agent_partner` was always passed as a parameter to the method. Given that, the method relies on `ai.agent` and not on `discuss.channel` and so it is moved to `ai.agent`.