mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
opt misc
This commit is contained in:
@@ -64,7 +64,7 @@
|
|||||||
</record>
|
</record>
|
||||||
<record id="partner_chatgpt4_azure" model="res.partner">
|
<record id="partner_chatgpt4_azure" model="res.partner">
|
||||||
<field name="name">ChatGPT4 Azure</field>
|
<field name="name">ChatGPT4 Azure</field>
|
||||||
<field name="image_1920" type="base64" file="app_chatgpt/static/description/chatgpt_blue.png"/>
|
<field name="image_1920" type="base64" file="app_chatgpt/static/description/chatgpt4_azure.png"/>
|
||||||
</record>
|
</record>
|
||||||
|
|
||||||
<record id="user_chatgpt4_azure" model="res.users">
|
<record id="user_chatgpt4_azure" model="res.users">
|
||||||
|
|||||||
@@ -131,6 +131,9 @@ class Channel(models.Model):
|
|||||||
answer_id = user_id.partner_id
|
answer_id = user_id.partner_id
|
||||||
if gpt_policy == 'all' or (gpt_policy == 'limit' and is_allow):
|
if gpt_policy == 'all' or (gpt_policy == 'limit' and is_allow):
|
||||||
ai = user_id.gpt_id
|
ai = user_id.gpt_id
|
||||||
|
elif user_id.gpt_id and not is_allow:
|
||||||
|
# 暂时有限用户的Ai
|
||||||
|
raise UserError(_('此Ai暂时未开放,请联系管理员。'))
|
||||||
|
|
||||||
chatgpt_channel_id = self.env.ref('app_chatgpt.channel_chatgpt')
|
chatgpt_channel_id = self.env.ref('app_chatgpt.channel_chatgpt')
|
||||||
|
|
||||||
|
|||||||
BIN
app_chatgpt/static/description/chatgpt4_azure.png
Normal file
BIN
app_chatgpt/static/description/chatgpt4_azure.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 47 KiB |
Reference in New Issue
Block a user