mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
add gpt
This commit is contained in:
13
app_chatgpt/models/mail_message.py
Normal file
13
app_chatgpt/models/mail_message.py
Normal file
@@ -0,0 +1,13 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class Message(models.Model):
|
||||
_inherit = "mail.message"
|
||||
|
||||
def _message_add_reaction(self, content):
|
||||
super(Message, self)._message_add_reaction(content)
|
||||
if self.create_uid.gpt_id:
|
||||
# 处理反馈
|
||||
pass
|
||||
Reference in New Issue
Block a user