mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update app_chatgpt
This commit is contained in:
@@ -48,9 +48,6 @@ class Channel(models.Model):
|
||||
res = ai.get_ai(prompt, partner_name)
|
||||
if res:
|
||||
res = res.replace('\n', '<br/>')
|
||||
if channel.channel_type == 'chat':
|
||||
channel.with_user(user_id).message_post(body=res, message_type='comment', subtype_xmlid='mail.mt_comment')
|
||||
else:
|
||||
channel.with_user(user_id).message_post(body=res, message_type='comment', subtype_xmlid='mail.mt_comment', parent_id=message.id)
|
||||
|
||||
def _notify_thread(self, message, msg_vals=False, **kwargs):
|
||||
|
||||
Reference in New Issue
Block a user