feat(addon): add ActiveBlue AI bot to Odoo Discuss

- Create res.partner for the AI bot (appears in DM contacts)
- Override mail.channel.message_post to intercept direct messages
  to the bot partner and forward them to the agent service
- Post the agent reply back into the Discuss channel as the bot
- Add discuss to depends; load res_partner_bot.xml data

Users can now open Discuss -> New Message -> search 'ActiveBlue AI'
to start a conversation with the agent.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Carlos Garcia
2026-04-24 22:14:00 -04:00
parent 6cb09282c2
commit 992d2c2775
4 changed files with 85 additions and 2 deletions

View File

@@ -11,10 +11,11 @@ CRM, sales, project management, eLearning, expenses, and HR.
'website': 'https://activeblue.net',
'category': 'Productivity',
'license': 'LGPL-3',
'depends': ['base', 'mail', 'web'],
'depends': ['base', 'mail', 'web', 'discuss'],
'data': [
'security/res_groups.xml',
'security/ir.model.access.csv',
'data/res_partner_bot.xml',
'data/ir_cron.xml',
'views/ab_ai_bot_views.xml',
'views/ab_ai_directive_views.xml',