在导出PO翻译文件的时候出了错误,求解!
-
Traceback (most recent call last):
File "/opt/odoo/odoo/http.py", line 648, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/http.py", line 309, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo/odoo/http.py", line 685, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/http.py", line 341, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/http.py", line 334, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/http.py", line 929, in call
return self.method(*args, **kw)
File "/opt/odoo/odoo/http.py", line 514, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 920, in call_button
action = self._call_kw(model, method, args, {})
File "/opt/odoo/odoo/addons/web/controllers/main.py", line 908, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/opt/odoo/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "/opt/odoo/odoo/addons/base/module/wizard/base_export_language.py", line 38, in act_getfile
tools.trans_export(lang, mods, buf, this.format, self._cr)
File "/opt/odoo/odoo/tools/translate.py", line 711, in trans_export
translations = trans_generate(lang, modules, cr)
File "/opt/odoo/odoo/tools/translate.py", line 916, in trans_generate
push_local_constraints(module, Model, 'sql_constraints')
File "/opt/odoo/odoo/tools/translate.py", line 904, in push_local_constraints
push_constraint_msg(module, term_type, model._name, constraint[msg_pos])
File "/opt/odoo/odoo/tools/translate.py", line 893, in push_constraint_msg
push_translation(encode(module), term_type, encode(model), 0, msg)
File "/opt/odoo/odoo/tools/translate.py", line 133, in encode
assert isinstance(s, pycompat.text_type)
AssertionError这是错误信息的全部,求帮助