I used Odoo v.11 and installed Website builder. Then, I modify Website Menu, add new page, and modify something front end in addons/website , addons/web, addons/web editor. Everything is ok, but when I choose upgrade module Website in Menu App, it's show this error as bellow. How to fix it?
Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/tools/convert.py", line 741, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/home/odoo/odoo/odoo/tools/convert.py", line 719, in _tag_template
return self._tag_record(record, data_node)
File "/home/odoo/odoo/odoo/tools/convert.py", line 651, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_model.py", line 1430, in _update
record.write(values)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 414, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/odoo/odoo/odoo/models.py", line 3065, in write
self._write(old_vals)
File "/home/odoo/odoo/odoo/models.py", line 3231, in _write
self._validate_fields(vals)
File "/home/odoo/odoo/odoo/models.py", line 1023, in _validate_fields
check(self)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 350, in _check_groups
raise ValidationError(_("Qweb view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition"))
odoo.exceptions.ValidationError: ("Qweb view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition", None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/http.py", line 650, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/home/odoo/odoo/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/home/odoo/odoo/odoo/http.py", line 692, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/odoo/odoo/http.py", line 342, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/odoo/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/odoo/odoo/http.py", line 335, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/odoo/odoo/http.py", line 936, in __call__
return self.method(*args, **kw)
File "/home/odoo/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/home/odoo/odoo/addons/web/controllers/main.py", line 934, in call_button
action = self._call_kw(model, method, args, {})
File "/home/odoo/odoo/addons/web/controllers/main.py", line 922, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 689, in call_kw
return call_kw_multi(method, model, args, kwargs)
File "/home/odoo/odoo/odoo/api.py", line 680, in call_kw_multi
result = method(recs, *args, **kwargs)
File "<decorator-gen-46>", line 2, in button_immediate_upgrade
File "/home/odoo/odoo/odoo/addons/base/module/module.py", line 71, in check_and_log
return method(self, *args, **kwargs)
File "/home/odoo/odoo/odoo/addons/base/module/module.py", line 602, in button_immediate_upgrade
return self._button_immediate_function(type(self).button_upgrade)
File "/home/odoo/odoo/odoo/addons/base/module/module.py", line 541, in _button_immediate_function
modules.registry.Registry.new(self._cr.dbname, update_module=True)
File "/home/odoo/odoo/odoo/modules/registry.py", line 85, in new
odoo.modules.load_modules(registry._db, force_demo, status, update_module)
File "/home/odoo/odoo/odoo/modules/loading.py", line 339, in load_modules
force, status, report, loaded_modules, update_module)
File "/home/odoo/odoo/odoo/modules/loading.py", line 242, in load_marked_modules
loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)
File "/home/odoo/odoo/odoo/modules/loading.py", line 156, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/home/odoo/odoo/odoo/modules/loading.py", line 94, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/home/odoo/odoo/odoo/tools/convert.py", line 788, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/home/odoo/odoo/odoo/tools/convert.py", line 849, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/home/odoo/odoo/odoo/tools/convert.py", line 748, in parse
exc_info[2]
File "/home/odoo/odoo/odoo/tools/pycompat.py", line 86, in reraise
raise value.with_traceback(tb)
File "/home/odoo/odoo/odoo/tools/convert.py", line 741, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/home/odoo/odoo/odoo/tools/convert.py", line 719, in _tag_template
return self._tag_record(record, data_node)
File "/home/odoo/odoo/odoo/tools/convert.py", line 651, in _tag_record
id = self.env(context=rec_context)['ir.model.data']._update(rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_model.py", line 1430, in _update
record.write(values)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 414, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/odoo/odoo/odoo/models.py", line 3065, in write
self._write(old_vals)
File "/home/odoo/odoo/odoo/models.py", line 3231, in _write
self._validate_fields(vals)
File "/home/odoo/odoo/odoo/models.py", line 1023, in _validate_fields
check(self)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 350, in _check_groups
raise ValidationError(_("Qweb view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition"))
odoo.tools.convert.ParseError: "Qweb view cannot have 'Groups' define on the record. Use 'groups' attributes inside the view definition
None" while parsing None:678, near
<t t-name="website.404">
<t t-call="website.layout">
<div id="wrap">
<t t-raw="0"/>
<div class="oe_structure oe_empty">
<div class="container">
<h1 class="mt32">404: Page not found!</h1>
<p>
The page you were looking for could not be found; it is possible you have
typed the address incorrectly, but it has most probably been removed due
to the recent website reorganisation.
</p>
<p>Maybe you were looking for one of these popular pages ?</p>
<ul>
<li><a href="/">Homepage</a></li>
<li><a href="/contactus">Contact Us</a></li>
</ul>
</div>
</div>
<t t-if="request.debug">
<t t-call="website.http_error_debug"/>
</t>
</div>
</t>
</t>