Hi, anyone can help me? i have an issue when i tried to install a paid theme in odoo 11, this is the error, can anyone can help me?
Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/models.py", line 1037, in _validate_fields
check(self)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 337, in _check_xml
view_def = view.read_combined(['arch'])
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 730, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 679, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/home/odoo/enterprise/web_studio/models/ir_ui_view.py", line 132, in apply_inheritance_specs
return super(View, self).apply_inheritance_specs(source, specs_tree, inherit_id)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 657, in apply_inheritance_specs
self.raise_view_error(_("Element '%s' cannot be located in parent view") % tag, inherit_id)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 519, in raise_view_error
raise ValueError(message)
ValueError: El elemento '<xpath expr="//section[@id='product_detail']//div[hasclass('row')][2]">' no puede ser localizado en la vista padre
Contexto del error:
Vista `Product`
[view_id: 2878, xml_id: n/a, model: n/a, parent_id: 1515]
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/tools/convert.py", line 744, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/home/odoo/odoo/odoo/tools/convert.py", line 722, in _tag_template
return self._tag_record(record, data_node)
File "/home/odoo/odoo/odoo/tools/convert.py", line 654, 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 1493, in _update
record = record.create(values)
File "/home/odoo/enterprise/web_studio/models/studio_mixin.py", line 18, in create
res = super(StudioMixin, self).create(vals)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 408, in create
return super(View, self).create(self._compute_defaults(values))
File "/home/odoo/odoo/odoo/models.py", line 3385, in create
self._fields[key].determine_inverse(record)
File "/home/odoo/odoo/odoo/fields.py", line 1061, in determine_inverse
getattr(records, self.inverse)()
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 273, in _inverse_arch
view.write(data)
File "/home/odoo/enterprise/web_studio/models/studio_mixin.py", line 27, in write
res = super(StudioMixin, self).write(vals)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 424, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/odoo/odoo/odoo/models.py", line 3094, in write
self._write(old_vals)
File "/home/odoo/odoo/odoo/models.py", line 3260, in _write
self._validate_fields(vals)
File "/home/odoo/odoo/odoo/models.py", line 1041, in _validate_fields
raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
odoo.exceptions.ValidationError: ('Error mientras se validaban las restricciones\n\nEl elemento \'<xpath expr="//section[@id=\'product_detail\']//div[hasclass(\'row\')][2]">\' no puede ser localizado en la vista padre\n\nContexto del error:\nVista `Product`\n[view_id: 2878, xml_id: n/a, model: n/a, parent_id: 1515]', None)
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/home/odoo/odoo/odoo/http.py", line 651, 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 693, 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 937, 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 938, in call_button
action = self._call_kw(model, method, args, {})
File "/home/odoo/odoo/addons/web/controllers/main.py", line 926, 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-45>", line 2, in button_immediate_install
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 449, in button_immediate_install
return self._button_immediate_function(type(self).button_install)
File "/home/odoo/odoo/odoo/addons/base/module/module.py", line 543, 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 380, in load_modules
loaded_modules, update_module, models_to_check)
File "/home/odoo/odoo/odoo/modules/loading.py", line 274, in load_marked_modules
perform_checks=perform_checks, models_to_check=models_to_check
File "/home/odoo/odoo/odoo/modules/loading.py", line 181, in load_module_graph
_load_data(cr, module_name, idref, mode, kind='data')
File "/home/odoo/odoo/odoo/modules/loading.py", line 95, in _load_data
tools.convert_file(cr, module_name, filename, idref, mode, noupdate, kind, report)
File "/home/odoo/odoo/odoo/tools/convert.py", line 791, in convert_file
convert_xml_import(cr, module, fp, idref, mode, noupdate, report)
File "/home/odoo/odoo/odoo/tools/convert.py", line 852, in convert_xml_import
obj.parse(doc.getroot(), mode=mode)
File "/home/odoo/odoo/odoo/tools/convert.py", line 751, 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 744, in parse
self._tags[rec.tag](rec, de, mode=mode)
File "/home/odoo/odoo/odoo/tools/convert.py", line 722, in _tag_template
return self._tag_record(record, data_node)
File "/home/odoo/odoo/odoo/tools/convert.py", line 654, 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 1493, in _update
record = record.create(values)
File "/home/odoo/enterprise/web_studio/models/studio_mixin.py", line 18, in create
res = super(StudioMixin, self).create(vals)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 408, in create
return super(View, self).create(self._compute_defaults(values))
File "/home/odoo/odoo/odoo/models.py", line 3385, in create
self._fields[key].determine_inverse(record)
File "/home/odoo/odoo/odoo/fields.py", line 1061, in determine_inverse
getattr(records, self.inverse)()
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 273, in _inverse_arch
view.write(data)
File "/home/odoo/enterprise/web_studio/models/studio_mixin.py", line 27, in write
res = super(StudioMixin, self).write(vals)
File "/home/odoo/odoo/odoo/addons/base/ir/ir_ui_view.py", line 424, in write
return super(View, self).write(self._compute_defaults(vals))
File "/home/odoo/odoo/odoo/models.py", line 3094, in write
self._write(old_vals)
File "/home/odoo/odoo/odoo/models.py", line 3260, in _write
self._validate_fields(vals)
File "/home/odoo/odoo/odoo/models.py", line 1041, in _validate_fields
raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))
odoo.tools.convert.ParseError: "Error mientras se validaban las restricciones
El elemento '<xpath expr="//section[@id='product_detail']//div[hasclass('row')][2]">' no puede ser localizado en la vista padre
Contexto del error:
Vista `Product`
[view_id: 2878, xml_id: n/a, model: n/a, parent_id: 1515]
None" while parsing None:704, near
<data inherit_id="website_sale.product" name="Product">
<xpath expr="//t[@t-call='website_sale.search']" position="replace"/>
<xpath expr="//div[@t-field='product.website_description']" position="replace"/>
<xpath expr="//section[@id='product_detail']//div[hasclass('row')][2]" position="replace">
<div class="row" id="product_information">
<div class="col-md-4">
<div class="product-img-box">
<div class="product-image" groups="!website_sale.group_website_multi_image">
<a t-att-href="website.image_url(product,'image')" class="slider-popup-product">
<span itemprop="image" t-field="product.image" t-options="{'widget': 'image', 'class': 'product_detail_img', 'alt-field': 'name'}" groups="!website_sale.group_website_multi_image" class="main_image"/>
</a>
</div>
<t groups="website_sale.group_website_multi_image">
<t t-set="variant_img" t-value="product.product_variant_id"/>
<a t-att-href="website.image_url(variant_img,'image')" class="slider-popup-product">
<div itemprop="image" t-field="product.product_variant_ids[0].image" t-options="{"widget": "image", "class": "product_detail_img js_variant_img", "alt-field": "name"}"/>
</a>
<t t-set="image_ids" t-value="product.product_image_ids"/>
<div id="pro_detail_zoom" class="owl-carousel thumbnails-slides" t-if="product.product_image_ids">
<div class="item">
<div t-if="variant_img" class="item variant_img" itemprop="image" t-field="product.image" t-options="{"widget": "image", "class": "sub-images", "alt-field": "name"}"/>
</div>
<t t-if="len(product.product_image_ids)" t-foreach="product.product_image_ids" t-as="pimg">
<div class="item">
<a t-att-href="website.image_url(pimg,'image')" class="slider-popup-product"/>
<img class="img img-responsive sub-images" t-attf-src="/website/image/product.image/{{pimg.id}}/image" t-att-alt="pimg.name"/>
</div>
</t>
</div>
</t>
</div>
</div>
<div class="col-md-5">
<div class="product-shop-info" id="product_details">
<h1><span t-field="product.name" itemprop="name"/></h1>
<t t-set="average_data" t-value="product.get_average_rating()"/>
<div class="average_find" t-if="average_data">
<t t-set="val" t-value="average_data['val']"/>
<t t-set="val_integer" t-value="average_data['val_integer']"/>
<t t-set="val_decimal" t-value="average_data['val_decimal']"/>
<t t-set="empty_star" t-value="average_data['empty_star']"/>
<t t-call="theme_laze.website_rating_static"/>
</div>
<div class="pro-desc">
<p t-field="product.description_sale"/>
</div>
<span itemprop="url" style="display:none;" t-esc="'/shop/product/%s' % slug(product)"/>
<form t-att-action="keep('/shop/cart/update')" class="js_add_cart_variants" t-att-data-attribute_value_ids="product.product_variant_ids.ids" method="POST">
<input type="hidden" name="csrf_token" t-att-value="request.csrf_token()"/>
<div class="js_product" t-if="product.product_variant_ids">
<t t-placeholder="select">
<input type="hidden" class="product_id" name="product_id" t-att-value="int(product.product_variant_ids[0]) if len(product.product_variant_ids) == 1 else '0'"/>
<t t-call="website_sale.variants">
<t t-set="ul_class" t-value="'nav-stacked'"/>
</t>
</t>
<t t-call="website_sale.product_price"/>
<p t-if="len(product.product_variant_ids) > 1" class="css_not_available_msg bg-danger" style="padding: 15px;">Product not available</p>
<a id="add_to_cart" class="btn btn-primary btn-lg mt8 js_check_product a-submit" href="#">Add to Cart</a>
<t t-if="product.env.ref('website_sale_comparison.add_to_compare').active">
<a class="hidden-xs btn btn-default btn-lg mt8 o_add_compare_dyn" title="Compare" t-att-data-product-product-id="product.product_variant_ids[0].id" data-action="o_comparelist"><span class="fa fa-exchange"/></a>
</t>
</div>
</form>
</div>
</div>
<div class="col-md-3">
</div>
</div>
<div class="row" id="product_more_info">
<div class="col-md-9 pd_info">
<div class="pd-more-info">
<ul class="nav nav-tabs" role="tablist">
<li role="presentation" class="active">
<a href="#more_info" aria-controls="more_info" role="tab" data-toggle="tab">Specification</a>
</li>
</ul>
<div class="tab-content">
<div role="tabpanel" class="tab-pane active" id="more_info">
<div itemprop="description" t-field="product.website_description" class="oe_structure mt16" id="product_full_description"/>
</div>
</div>
</div>
</div>
</div>
<hr id="hr_product_attributes_simple">
</hr>
<p id="product_attributes_simple"/>
</xpath>
<xpath expr="//section[@id='product_detail']" position="after">
<div class="oe_structure"/>
</xpath>
</data>