update po relate

This commit is contained in:
Ivan Office
2024-08-26 00:47:27 +08:00
parent abb1d85fee
commit d894d93049
5 changed files with 5 additions and 6 deletions

View File

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