update common for import

This commit is contained in:
Ivan Office
2024-08-26 00:37:50 +08:00
parent 3a2e2ec697
commit 9ebc31d1a1
4 changed files with 4 additions and 5 deletions

View File

@@ -1123,7 +1123,7 @@ msgstr ""
#. module: app_chatgpt #. module: app_chatgpt
#: model:ir.model.fields,help:app_chatgpt.field_ai_robot__sequence #: model:ir.model.fields,help:app_chatgpt.field_ai_robot__sequence
msgid "Determine the display order" msgid "Determine the display order"
msgstr "" msgstr "确定显示顺序,值越小越靠前"
#. module: app_chatgpt #. module: app_chatgpt
#: model:ir.actions.server,name:app_chatgpt.model_ai_robot_action_disconnect #: model:ir.actions.server,name:app_chatgpt.model_ai_robot_action_disconnect

View File

@@ -39,7 +39,7 @@
{ {
'name': "odooAi Common Util and Tools", 'name': "odooAi Common Util and Tools",
'version': '24.04.29', 'version': '24.08.26',
'author': 'odooai.cn', 'author': 'odooai.cn',
'category': 'Base', 'category': 'Base',
'website': 'https://www.odooai.cn', 'website': 'https://www.odooai.cn',

View File

@@ -10,7 +10,7 @@ from odoo.tools import pycompat
from odoo.tests import common from odoo.tests import common
ADMIN_USER_ID = common.ADMIN_USER_ID ADMIN_USER_ID = common.ADMIN_USER_ID
def app_quick_import(cr, content_path, sep=None): def app_quick_import(env, content_path, sep=None):
if not sep: if not sep:
sep = '/' sep = '/'
dir_split = content_path.split(sep) dir_split = content_path.split(sep)
@@ -24,7 +24,6 @@ def app_quick_import(cr, content_path, sep=None):
if model_name == 'discuss.channel': if model_name == 'discuss.channel':
# todo: 创建discuss.channel时如果用root用户会报错 # todo: 创建discuss.channel时如果用root用户会报错
uid = 2 uid = 2
env = api.Environment(cr, uid, {})
if file_type == '.csv': if file_type == '.csv':
file_type = 'text/csv' file_type = 'text/csv'
elif file_type in ['.xls', '.xlsx']: elif file_type in ['.xls', '.xlsx']:

View File

@@ -52,7 +52,7 @@ msgstr "博客图文"
#: model:ir.model.fields,help:app_website_blog_editor.field_blog_tag__sequence #: model:ir.model.fields,help:app_website_blog_editor.field_blog_tag__sequence
#: model:ir.model.fields,help:app_website_blog_editor.field_blog_tag_category__sequence #: model:ir.model.fields,help:app_website_blog_editor.field_blog_tag_category__sequence
msgid "Determine the display order" msgid "Determine the display order"
msgstr "确定显示顺序" msgstr "确定显示顺序,值越小越靠前"
#. module: app_website_blog_editor #. module: app_website_blog_editor
#: model:ir.model.fields,field_description:app_website_blog_editor.field_website_page__is_force_all #: model:ir.model.fields,field_description:app_website_blog_editor.field_website_page__is_force_all