mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
更新敏感词
This commit is contained in:
@@ -131,7 +131,6 @@ class Channel(models.Model):
|
||||
answer_id = user_id.partner_id
|
||||
if gpt_policy == 'all' or (gpt_policy == 'limit' and is_allow):
|
||||
ai = user_id.sudo().gpt_id
|
||||
ai = user_id.gpt_id
|
||||
elif user_id.gpt_id and not is_allow:
|
||||
# 暂时有限用户的Ai
|
||||
raise UserError(_('此Ai暂时未开放,请联系管理员。'))
|
||||
|
||||
Reference in New Issue
Block a user