JoneXiong/oejia_menu

您好,我在ODOO13中安装报错

Opened this issue · 0 comments

Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 642, in apply_inheritance_specs
pre_locate=pre_locate)
File "/home/odoo/odoo/odoo/tools/template_inheritance.py", line 209, in apply_inheritance_specs
_("Element '%s' cannot be located in parent view") % tag
ValueError: 元素 '' 在母级视图中没有找到

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/odoo/odoo/tools/convert.py", line 713, in parse
self._tag_root(de)
File "/home/odoo/odoo/odoo/tools/convert.py", line 675, in _tag_root
f(rec)
File "/home/odoo/odoo/odoo/tools/convert.py", line 653, in _tag_template
return self._tag_record(record)
File "/home/odoo/odoo/odoo/tools/convert.py", line 578, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/home/odoo/odoo/odoo/models.py", line 3990, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/odoo/odoo/addons/website/models/ir_ui_view.py", line 148, in _load_records_create
records = super(View, self)._load_records_create(values)
File "/home/odoo/odoo/odoo/models.py", line 3904, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/home/odoo/odoo/odoo/api.py", line 359, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 473, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/home/odoo/odoo/odoo/api.py", line 359, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo/odoo/models.py", line 3685, in create
fields[0].determine_inverse(batch_recs)
File "/home/odoo/odoo/odoo/fields.py", line 1153, in determine_inverse
getattr(records, self.inverse)()
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/home/odoo/odoo/addons/website/models/ir_ui_view.py", line 51, in write
return super(View, self).write(vals)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 490, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/odoo/odoo/odoo/models.py", line 3473, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/home/odoo/odoo/odoo/models.py", line 1115, in _validate_fields
check(self)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 385, in _check_xml
view_def = view.read_combined(['arch'])
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 716, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 665, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 644, in apply_inheritance_specs
self.raise_view_error(str(e), inherit_id)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 592, in raise_view_error
raise ValueError(message)
ValueError: 元素 '' 在母级视图中没有找到

错误的上下文:
视图 oejia_webclient
[view_id: 1029, xml_id: n/a, model: n/a, parent_id: 201]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/home/odoo/odoo/odoo/http.py", line 619, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/odoo/odoo/http.py", line 309, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/home/odoo/odoo/odoo/http.py", line 664, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/odoo/odoo/http.py", line 345, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/odoo/odoo/service/model.py", line 93, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/odoo/odoo/http.py", line 338, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/odoo/odoo/http.py", line 909, in call
return self.method(*args, **kw)
File "/home/odoo/odoo/odoo/http.py", line 510, in response_wrap
response = f(*args, **kw)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 1323, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 1311, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 410, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 397, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_install
File "/home/odoo/odoo/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "/home/odoo/odoo/odoo/addons/base/models/ir_module.py", line 463, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/odoo/odoo/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/odoo/odoo/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/odoo/odoo/modules/loading.py", line 420, in load_modules
loaded_modules, update_module, models_to_check)
File "/home/odoo/odoo/odoo/modules/loading.py", line 312, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/odoo/odoo/odoo/modules/loading.py", line 222, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/home/odoo/odoo/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/home/odoo/odoo/odoo/tools/convert.py", line 737, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/home/odoo/odoo/odoo/tools/convert.py", line 804, in convert_xml_import
obj.parse(doc.getroot())
File "/home/odoo/odoo/odoo/tools/convert.py", line 722, in parse
exc_info[2]
File "/home/odoo/odoo/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/home/odoo/odoo/odoo/tools/convert.py", line 713, in parse
self._tag_root(de)
File "/home/odoo/odoo/odoo/tools/convert.py", line 675, in _tag_root
f(rec)
File "/home/odoo/odoo/odoo/tools/convert.py", line 653, in _tag_template
return self._tag_record(record)
File "/home/odoo/odoo/odoo/tools/convert.py", line 578, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/home/odoo/odoo/odoo/models.py", line 3990, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/home/odoo/odoo/addons/website/models/ir_ui_view.py", line 148, in _load_records_create
records = super(View, self)._load_records_create(values)
File "/home/odoo/odoo/odoo/models.py", line 3904, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/home/odoo/odoo/odoo/api.py", line 359, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 473, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/home/odoo/odoo/odoo/api.py", line 359, in _model_create_multi
return create(self, arg)
File "/home/odoo/odoo/odoo/models.py", line 3685, in create
fields[0].determine_inverse(batch_recs)
File "/home/odoo/odoo/odoo/fields.py", line 1153, in determine_inverse
getattr(records, self.inverse)()
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/home/odoo/odoo/addons/website/models/ir_ui_view.py", line 51, in write
return super(View, self).write(vals)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 490, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/odoo/odoo/odoo/models.py", line 3473, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/home/odoo/odoo/odoo/models.py", line 1115, in _validate_fields
check(self)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 385, in _check_xml
view_def = view.read_combined(['arch'])
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 716, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 665, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 644, in apply_inheritance_specs
self.raise_view_error(str(e), inherit_id)
File "/home/odoo/odoo/odoo/addons/base/models/ir_ui_view.py", line 592, in raise_view_error
raise ValueError(message)
odoo.tools.convert.ParseError: "元素 '' 在母级视图中没有找到

错误的上下文:
视图 oejia_webclient
[view_id: 1029, xml_id: n/a, model: n/a, parent_id: 201]" while parsing /home/odoo/odoo/my-modules/oejia_menu/views/template.xml:2, near

</odoo>