mirror of
https://github.com/guohuadeng/app-odoo.git
synced 2025-02-23 04:11:36 +02:00
update lic
This commit is contained in:
@@ -10,7 +10,7 @@
|
||||
|
||||
{
|
||||
'name': 'ChatGPT4, China Ali,AiGC Center.Ai服务中心,聚合全网Ai',
|
||||
'version': '18.0.25.01.08',
|
||||
'version': '18.0.25.02.07',
|
||||
'author': 'odooai.cn',
|
||||
'company': 'odooai.cn',
|
||||
'maintainer': 'odooai.cn',
|
||||
@@ -48,11 +48,8 @@
|
||||
pip3 install typing-extensions==4.12.2
|
||||
''',
|
||||
'depends': [
|
||||
'base',
|
||||
'app_odoo_customize',
|
||||
'base_setup',
|
||||
'mail',
|
||||
# 'queue_job',
|
||||
],
|
||||
'data': [
|
||||
'security/ir.model.access.csv',
|
||||
|
||||
@@ -314,11 +314,13 @@ class Channel(models.Model):
|
||||
|
||||
# if msg_len * 2 >= 8000:
|
||||
# messages = [{"role": "user", "content": msg}]
|
||||
if sync_config == 'sync':
|
||||
self.get_ai_response(ai, messages, channel, user_id, message)
|
||||
else:
|
||||
if hasattr(self, 'with_delay'):
|
||||
self.with_delay().get_ai_response(ai, messages, channel, user_id, message)
|
||||
else:
|
||||
self.get_ai_response(ai, messages, channel, user_id, message)
|
||||
# if sync_config == 'sync':
|
||||
# self.get_ai_response(ai, messages, channel, user_id, message)
|
||||
# else:
|
||||
# self.with_delay().get_ai_response(ai, messages, channel, user_id, message)
|
||||
except Exception as e:
|
||||
raise UserError(e)
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
'category': 'Base',
|
||||
'website': 'https://www.odooai.cn',
|
||||
'live_test_url': 'https://demo.odooapp.cn',
|
||||
'license': 'OPL-1',
|
||||
'license': 'LGPL-3',
|
||||
'sequence': 2,
|
||||
'price': 0.00,
|
||||
'currency': 'EUR',
|
||||
|
||||
@@ -12,6 +12,6 @@ class ResConfigSettings(models.TransientModel):
|
||||
_inherit = 'res.config.settings'
|
||||
|
||||
module_app_cn_po = fields.Boolean('SaaS Chinese PO', help="Checked to Sync Odoo Chinese from www.odooapp.cn")
|
||||
app_saas_db_token = fields.Char('Cloud DB Token', default=True, config_parameter='app_saas_db_token',
|
||||
app_saas_db_token = fields.Char('Cloud DB Token', default=None, config_parameter='app_saas_db_token',
|
||||
help="The odooapp SaaS Token for this Odoo Database. You can reset in https://www.odooapp.cn")
|
||||
|
||||
@@ -29,7 +29,7 @@
|
||||
'category': 'Base',
|
||||
'website': 'https://www.odooai.cn',
|
||||
'live_test_url': 'https://demo.odooapp.cn',
|
||||
'license': 'OPL-1',
|
||||
'license': 'LGPL-3',
|
||||
'sequence': 2,
|
||||
'price': 2.00,
|
||||
'currency': 'EUR',
|
||||
|
||||
Reference in New Issue
Block a user