mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
prepare #I6T53Q 【app_chatgpt】代码优化,gpt_id主要绑定在partner中,users中是related过去处理 置顶
This commit is contained in:
9
app_chatgpt/models/res_partner.py
Normal file
9
app_chatgpt/models/res_partner.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
from odoo import fields, models
|
||||
|
||||
|
||||
class ResPartner(models.Model):
|
||||
_inherit = "res.partner"
|
||||
|
||||
gpt_id = fields.Many2one('ai.robot', string='Bind to ChatGpt')
|
||||
Reference in New Issue
Block a user