{"action":"created","issue":{"url":"https://api.github.com/repos/odoo/odoo/issues/3307","labels_url":"https://api.github.com/repos/odoo/odoo/issues/3307/labels{/name}","comments_url":"https://api.github.com/repos/odoo/odoo/issues/3307/comments","events_url":"https://api.github.com/repos/odoo/odoo/issues/3307/events","html_url":"https://github.com/odoo/odoo/issues/3307","id":46871355,"number":3307,"title":"[8.0]Field(s) `arch` failed against a constraint: Invalid view definition","user":{"login":"rainberg","id":8565676,"avatar_url":"https://avatars.githubusercontent.com/u/8565676?v=3","gravatar_id":"","url":"https://api.github.com/users/rainberg","html_url":"https://github.com/rainberg","followers_url":"https://api.github.com/users/rainberg/followers","following_url":"https://api.github.com/users/rainberg/following{/other_user}","gists_url":"https://api.github.com/users/rainberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rainberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainberg/subscriptions","organizations_url":"https://api.github.com/users/rainberg/orgs","repos_url":"https://api.github.com/users/rainberg/repos","events_url":"https://api.github.com/users/rainberg/events{/privacy}","received_events_url":"https://api.github.com/users/rainberg/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2014-10-27T05:33:24Z","updated_at":"2015-06-06T16:58:51Z","closed_at":null,"body":"Happened when i tried to instalal the module website_event\r\n\r\nThis is the version i used:\r\n\r\ncommit ae02468e0af40958f76671f0b064ffd54c893f01\r\nMerge: 92183e5 3dff287\r\nAuthor: Josse Colpaert <jco@odoo.com>\r\nDate:   Fri Oct 24 19:58:48 2014 +0200\r\n\r\nThis is thte detail of errors\r\n```\r\nTraceback (most recent call last):\r\n  File \"/usr/local/src/odoo/openerp/http.py\", line 500, in _handle_exception\r\n    return super(JsonRequest, self)._handle_exception(exception)\r\n  File \"/usr/local/src/odoo/openerp/http.py\", line 517, in dispatch\r\n    result = self._call_function(**self.params)\r\n  File \"/usr/local/src/odoo/openerp/http.py\", line 283, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/service/model.py\", line 113, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/http.py\", line 280, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/usr/local/src/odoo/openerp/http.py\", line 733, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/usr/local/src/odoo/openerp/http.py\", line 376, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/usr/local/src/odoo/addons/web/controllers/main.py\", line 952, in call_button\r\n    action = self._call_kw(model, method, args, {})\r\n  File \"/usr/local/src/odoo/addons/web/controllers/main.py\", line 940, in _call_kw\r\n    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/addons/base/module/module.py\", line 450, in button_immediate_install\r\n    return self._button_immediate_function(cr, uid, ids, self.button_install, context=context)\r\n  File \"/usr/local/src/odoo/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/addons/base/module/module.py\", line 498, in _button_immediate_function\r\n    registry = openerp.modules.registry.RegistryManager.new(cr.dbname, update_module=True)\r\n  File \"/usr/local/src/odoo/openerp/modules/registry.py\", line 324, in new\r\n    openerp.modules.load_modules(registry._db, force_demo, status, update_module)\r\n  File \"/usr/local/src/odoo/openerp/modules/loading.py\", line 358, in load_modules\r\n    loaded_modules, update_module)\r\n  File \"/usr/local/src/odoo/openerp/modules/loading.py\", line 263, in load_marked_modules\r\n    loaded, processed = load_module_graph(cr, graph, progressdict, report=report, skip_modules=loaded_modules, perform_checks=perform_checks)\r\n  File \"/usr/local/src/odoo/openerp/modules/loading.py\", line 182, in load_module_graph\r\n    _load_data(cr, module_name, idref, mode, kind='data')\r\n  File \"/usr/local/src/odoo/openerp/modules/loading.py\", line 118, in _load_data\r\n    tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)\r\n  File \"/usr/local/src/odoo/openerp/tools/convert.py\", line 899, in convert_file\r\n    convert_xml_import(cr, module, fp, idref, mode, noupdate, report)\r\n  File \"/usr/local/src/odoo/openerp/tools/convert.py\", line 985, in convert_xml_import\r\n    obj.parse(doc.getroot(), mode=mode)\r\n  File \"/usr/local/src/odoo/openerp/tools/convert.py\", line 851, in parse\r\n    self._tags[rec.tag](self.cr, rec, n, mode=mode)\r\n  File \"/usr/local/src/odoo/openerp/tools/convert.py\", line 827, in _tag_template\r\n    return self._tag_record(cr, record, data_node)\r\n  File \"/usr/local/src/odoo/openerp/tools/convert.py\", line 765, in _tag_record\r\n    id = self.pool['ir.model.data']._update(cr, self.uid, rec_model, self.module, res, rec_id or False, not self.isnoupdate(data_node), noupdate=self.isnoupdate(data_node), mode=self.mode, context=rec_context )\r\n  File \"/usr/local/src/odoo/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/addons/base/ir/ir_model.py\", line 1052, in _update\r\n    res_id = model_obj.create(cr, uid, values, context=context)\r\n  File \"/usr/local/src/odoo/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/addons/base/ir/ir_ui_view.py\", line 264, in create\r\n    context=context)\r\n  File \"/usr/local/src/odoo/openerp/api.py\", line 237, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/api.py\", line 332, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/models.py\", line 3965, in create\r\n    record = self.browse(self._create(old_vals))\r\n  File \"/usr/local/src/odoo/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/api.py\", line 464, in new_api\r\n    result = method(self._model, cr, uid, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/models.py\", line 4156, in _create\r\n    recs._validate_fields(vals)\r\n  File \"/usr/local/src/odoo/openerp/api.py\", line 235, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/usr/local/src/odoo/openerp/models.py\", line 1300, in _validate_fields\r\n    raise ValidationError('\\n'.join(errors))\r\nParseError: \"ValidateError\r\nField(s) `arch` failed against a constraint: Invalid view definition\r\n\r\nError details:\r\nElement '<xpath expr=\"//ul[@id='products']\">' cannot be located in parent view\r\n\r\nError context:\r\nView `Footer Events Link`\r\n[view_id: 2304, xml_id: n/a, model: n/a, parent_id: 266]\" while parsing None:19, near\r\n<data inherit_id=\"website.footer_default\" name=\"Footer Events Link\">\r\n    <xpath expr=\"//ul[@id='products']\" position=\"inside\">\r\n        <li><a href=\"/event\">Events</a></li>\r\n    </xpath>\r\n</data>\r\n```"},"comment":{"url":"https://api.github.com/repos/odoo/odoo/issues/comments/109617562","html_url":"https://github.com/odoo/odoo/issues/3307#issuecomment-109617562","issue_url":"https://api.github.com/repos/odoo/odoo/issues/3307","id":109617562,"user":{"login":"rainberg","id":8565676,"avatar_url":"https://avatars.githubusercontent.com/u/8565676?v=3","gravatar_id":"","url":"https://api.github.com/users/rainberg","html_url":"https://github.com/rainberg","followers_url":"https://api.github.com/users/rainberg/followers","following_url":"https://api.github.com/users/rainberg/following{/other_user}","gists_url":"https://api.github.com/users/rainberg/gists{/gist_id}","starred_url":"https://api.github.com/users/rainberg/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rainberg/subscriptions","organizations_url":"https://api.github.com/users/rainberg/orgs","repos_url":"https://api.github.com/users/rainberg/repos","events_url":"https://api.github.com/users/rainberg/events{/privacy}","received_events_url":"https://api.github.com/users/rainberg/received_events","type":"User","site_admin":false},"created_at":"2015-06-06T16:58:51Z","updated_at":"2015-06-06T16:58:51Z","body":"Element '<xpath expr=\"//ul[@id='products']\">' cannot be located in parent view\r\n\r\nfor me it didn't resolved until ,it seems to be related to the data I used,if i start a new instance without data,i cant install the event module ,if i recovered from the data before ,then i will get the same error again\r\n\r\nElement '<xpath expr=\"//ul[@id='products']\">' cannot be located in parent view\r\n"}}