fix(addon): inherit discuss.channel not mail.channel (renamed in Odoo 17+)

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
Carlos Garcia
2026-04-24 22:15:46 -04:00
parent e3ef649ee6
commit 65957339ef

View File

@@ -13,8 +13,8 @@ def _strip_html(html: str) -> str:
return _HTML_TAG.sub(' ', html or '').strip()
class MailChannel(models.Model):
_inherit = 'mail.channel'
class DiscussChannel(models.Model):
_inherit = 'discuss.channel'
@api.model
def _ai_bot_partner(self):