Skip to Content
Menu
This question has been flagged
1444 Views

It says that the button name 'export_xlsx' is not located in parent view but I have looked up the external ID for the web module and this is the only ID I got. Also guide me how can I add the admin to still have access to it

Code:


export.hide.form.inherit
base



1



ERROR:
Error:
Odoo Server Error

Traceback (most recent call last):
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 669, in apply_inheritance_specs
source = apply_inheritance_specs(source, specs_tree,
File "/odoo/odoo-server/odoo/tools/template_inheritance.py", line 229, in apply_inheritance_specs
raise ValueError(
ValueError: Element '' cannot be located in parent view

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/odoo/odoo-server/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/odoo/odoo-server/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/odoo/odoo-server/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/odoo/odoo-server/odoo/tools/convert.py", line 577, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/odoo/odoo-server/odoo/models.py", line 4146, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/odoo/odoo-server/odoo/models.py", line 4060, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 475, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/home/faiza/Desktop/Faiza-office/design-creative-bahrian/smile_audit/models/base.py", line 67, in create
return super(Base, self).create(vals_list)
File "", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/odoo/models.py", line 3821, in create
fields[0].determine_inverse(batch_recs)
File "/odoo/odoo-server/odoo/fields.py", line 1122, in determine_inverse
getattr(records, self.inverse)()
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 493, in write
res = super(View, self).write(self._compute_defaults(vals))
File "/home/faiza/Desktop/Faiza-office/design-creative-bahrian/smile_audit/models/base.py", line 105, in write
return super(Base, self).write(vals)
File "/odoo/odoo-server/odoo/models.py", line 3610, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/odoo/odoo-server/odoo/models.py", line 1201, in _validate_fields
check(self)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 387, in _check_xml
view_def = view.read_combined(['arch'])
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 745, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 694, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 673, in apply_inheritance_specs
self.raise_view_error(str(e), inherit_id)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 614, in raise_view_error
raise ValueError(message)
ValueError: Element '' cannot be located in parent view

Error context:
View `export.hide.form.inherit`
[view_id: 982, xml_id: n/a, model: base, parent_id: 93]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/odoo/odoo-server/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/odoo/odoo-server/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/odoo/odoo-server/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/odoo/odoo-server/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/odoo/odoo-server/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/odoo/odoo-server/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/odoo/odoo-server/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/odoo/odoo-server/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/odoo/odoo-server/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1330, in call_button
action = self._call_kw(model, method, args, kwargs)
File "/odoo/odoo-server/addons/web/controllers/main.py", line 1318, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 387, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/odoo/odoo-server/odoo/api.py", line 374, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "", line 2, in button_immediate_upgrade
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 72, in check_and_log
return method(self, *args, **kwargs)
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 634, in button_immediate_upgrade
return self._button_immediate_function(type(self).button_upgrade)
File "/odoo/odoo-server/odoo/addons/base/models/ir_module.py", line 573, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/odoo/odoo-server/odoo/modules/registry.py", line 86, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/odoo/odoo-server/odoo/modules/loading.py", line 417, in load_modules
processed_modules += load_marked_modules(cr, graph,
File "/odoo/odoo-server/odoo/modules/loading.py", line 313, in load_marked_modules
loaded, processed = load_module_graph(
File "/odoo/odoo-server/odoo/modules/loading.py", line 225, in load_module_graph
load_data(cr, idref, mode, kind='data', package=package, report=report)
File "/odoo/odoo-server/odoo/modules/loading.py", line 68, in load_data
tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)
File "/odoo/odoo-server/odoo/tools/convert.py", line 736, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/odoo/odoo-server/odoo/tools/convert.py", line 803, in convert_xml_import
obj.parse(doc.getroot())
File "/odoo/odoo-server/odoo/tools/convert.py", line 715, in parse
pycompat.reraise(
File "/odoo/odoo-server/odoo/tools/pycompat.py", line 13, in reraise
raise value.with_traceback(tb)
File "/odoo/odoo-server/odoo/tools/convert.py", line 712, in parse
self._tag_root(de)
File "/odoo/odoo-server/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/odoo/odoo-server/odoo/tools/convert.py", line 674, in _tag_root
f(rec)
File "/odoo/odoo-server/odoo/tools/convert.py", line 577, in _tag_record
record = model._load_records([data], self.mode == 'update')
File "/odoo/odoo-server/odoo/models.py", line 4146, in _load_records
records = self._load_records_create([data['values'] for data in to_create])
File "/odoo/odoo-server/odoo/models.py", line 4060, in _load_records_create
return self.create(values)
File "", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 475, in create
return super(View, self).create(vals_list)
File "", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/home/faiza/Desktop/Faiza-office/design-creative-bahrian/smile_audit/models/base.py", line 67, in create
return super(Base, self).create(vals_list)
File "", line 2, in create
File "/odoo/odoo-server/odoo/api.py", line 336, in _model_create_multi
return create(self, arg)
File "/odoo/odoo-server/odoo/models.py", line 3821, in create
fields[0].determine_inverse(batch_recs)
File "/odoo/odoo-server/odoo/fields.py", line 1122, in determine_inverse
getattr(records, self.inverse)()
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 299, in _inverse_arch
view.write(data)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 493, in write
res = super(View, self).write(self._compute_defaults(vals))
File "/home/faiza/Desktop/Faiza-office/design-creative-bahrian/smile_audit/models/base.py", line 105, in write
return super(Base, self).write(vals)
File "/odoo/odoo-server/odoo/models.py", line 3610, in write
real_recs._validate_fields(set(vals) - set(inverse_fields))
File "/odoo/odoo-server/odoo/models.py", line 1201, in _validate_fields
check(self)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 387, in _check_xml
view_def = view.read_combined(['arch'])
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 745, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 694, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 673, in apply_inheritance_specs
self.raise_view_error(str(e), inherit_id)
File "/odoo/odoo-server/odoo/addons/base/models/ir_ui_view.py", line 614, in raise_view_error
raise ValueError(message)
odoo.tools.convert.ParseError: "Element '' cannot be located in parent view

Error context:
View `export.hide.form.inherit`
[view_id: 982, xml_id: n/a, model: base, parent_id: 93]" while parsing /home/faiza/Desktop/Faiza-office/design-creative-bahrian/spreadsheet/views/remove_export.xml:3, near



export.hide.form.inherit
base



1












Avatar
Discard
Related Posts Replies Views Activity
1
Nov 24
150
1
Apr 23
1466
7
Feb 23
7478
0
Sep 22
949
1
Jul 22
471