Skip to Content
Menu
This question has been flagged
1 Reply
1481 Views

Hello, when i try to go into products section (POS -> PRODUCTS) i getting this error:

Error:
Odoo Server Error

Traceback (most recent call last):
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 656, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 314, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/pycompat.py", line 87, in reraise
raise value
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 698, in dispatch
result = self._call_function(**self.params)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 346, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/service/model.py", line 97, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 941, in __call__
return self.method(*args, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 519, in response_wrap
response = f(*args, **kw)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/web/controllers/main.py", line 962, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/web/controllers/main.py", line 954, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/api.py", line 745, in call_kw
return _call_kw_model(method, model, args, kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/api.py", line 718, in _call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1376, in load_views
for [v_id, v_type] in views
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1376, in <dictcomp>
for [v_id, v_type] in views
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/mail/models/mail_thread.py", line 410, in fields_view_get
res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1455, in fields_view_get
result = self._fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1418, in _fields_view_get
root_view = View.browse(view_id).read_combined(['id', 'name', 'field_parent', 'type', 'model', 'arch'])
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 779, in read_combined
parent_view = root.inherit_id.read_combined(fields=fields)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 784, in read_combined
arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 732, in apply_view_inheritance
source = self.apply_inheritance_specs(source, specs_tree, view_id)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 710, in apply_inheritance_specs
self.raise_view_error(_("Element '%s' cannot be located in parent view") % tag, inherit_id)
File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error
raise ValueError(message)
ValueError: El elemento '<xpath expr="//group[@name='invoicing']">' no puede ser localizado en la vista padre

Contexto del error:
Vista `product.template.sales`
[view_id: 1809, xml_id: sale_management.product_template_sale_form_view, model: product.template, parent_id: 387]

Can someone help me?

Thanks you.

Regards

Avatar
Discard
Best Answer

Try to install Sale Management apps and then access product from POS.

Avatar
Discard
Author

Hello again and thanks for your feedback.

When im trying to install Odoo Sales or something related Im getting this issue:

Odoo Server Error

Traceback (most recent call last):

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1108, in _validate_fields

check(self)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 345, in _check_xml

view_def = view.read_combined(['arch'])

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 784, in read_combined

arch = self.apply_view_inheritance(arch_tree, root.id, self.model)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 732, in apply_view_inheritance

source = self.apply_inheritance_specs(source, specs_tree, view_id)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 710, in apply_inheritance_specs

self.raise_view_error(_("Element '%s' cannot be located in parent view") % tag, inherit_id)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 548, in raise_view_error

raise ValueError(message)

ValueError: Element '<xpath expr="//group[@name='invoicing']">' cannot be located in parent view

Error context:

View `product.template.sales`

[view_id: 1809, xml_id: sale_management.product_template_sale_form_view, model: product.template, parent_id: 387]

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/convert.py", line 758, in parse

self._tags[rec.tag](rec, de, mode=mode)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/convert.py", line 663, in _tag_record

record = model.with_context(rec_context)._load_records([data], self.mode == 'update')

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3838, in _load_records

data['record']._load_records_write(data['values'])

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/website/models/ir_ui_view.py", line 120, in _load_records_write

super(View, self)._load_records_write(values)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3776, in _load_records_write

self.write(values)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/website/models/ir_ui_view.py", line 41, in write

return super(View, self).write(vals)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 444, in write

return super(View, self).write(self._compute_defaults(vals))

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3347, in write

fields[0].determine_inverse(records)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/fields.py", line 1117, in determine_inverse

getattr(records, self.inverse)()

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch

view.write(data)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/website/models/ir_ui_view.py", line 41, in write

return super(View, self).write(vals)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 444, in write

return super(View, self).write(self._compute_defaults(vals))

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3321, in write

self._write(store_vals)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3457, in _write

self._validate_fields(vals)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1112, in _validate_fields

raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))

odoo.exceptions.ValidationError: ('Error while validating constraint\n\nElement \'<xpath expr="//group[@name=\'invoicing\']">\' cannot be located in parent view\n\nError context:\nView `product.template.sales`\n[view_id: 1809, xml_id: sale_management.product_template_sale_form_view, model: product.template, parent_id: 387]', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 656, in _handle_exception

return super(JsonRequest, self)._handle_exception(exception)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 314, in _handle_exception

raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/pycompat.py", line 87, in reraise

raise value

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 698, in dispatch

result = self._call_function(**self.params)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 346, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/service/model.py", line 97, in wrapper

return f(dbname, *args, **kwargs)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 339, in checked_call

result = self.endpoint(*a, **kw)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 941, in __call__

return self.method(*args, **kw)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/http.py", line 519, in response_wrap

response = f(*args, **kw)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/web/controllers/main.py", line 966, in call_button

action = self._call_kw(model, method, args, {})

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/web/controllers/main.py", line 954, in _call_kw

return call_kw(request.env[model], method, args, kwargs)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/api.py", line 749, in call_kw

return _call_kw_multi(method, model, args, kwargs)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/api.py", line 736, in _call_kw_multi

result = method(recs, *args, **kwargs)

File "<decorator-gen-61>", line 2, in button_immediate_install

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_module.py", line 74, in check_and_log

return method(self, *args, **kwargs)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_module.py", line 445, in button_immediate_install

return self._button_immediate_function(type(self).button_install)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_module.py", line 561, in _button_immediate_function

modules.registry.Registry.new(self._cr.dbname, update_module=True)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/modules/registry.py", line 86, in new

odoo.modules.load_modules(registry._db, force_demo, status, update_module)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/modules/loading.py", line 421, in load_modules

loaded_modules, update_module, models_to_check)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/modules/loading.py", line 313, in load_marked_modules

perform_checks=perform_checks, models_to_check=models_to_check

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/modules/loading.py", line 222, in load_module_graph

load_data(cr, idref, mode, kind='data', package=package, report=report)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/modules/loading.py", line 68, in load_data

tools.convert_file(cr, package.name, filename, idref, mode, noupdate, kind, report)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/convert.py", line 802, in convert_file

convert_xml_import(cr, module, fp, idref, mode, noupdate, report)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/convert.py", line 865, in convert_xml_import

obj.parse(doc.getroot(), mode=mode)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/convert.py", line 764, in parse

exc_info[2]

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/pycompat.py", line 86, in reraise

raise value.with_traceback(tb)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/convert.py", line 758, in parse

self._tags[rec.tag](rec, de, mode=mode)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/tools/convert.py", line 663, in _tag_record

record = model.with_context(rec_context)._load_records([data], self.mode == 'update')

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3838, in _load_records

data['record']._load_records_write(data['values'])

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/website/models/ir_ui_view.py", line 120, in _load_records_write

super(View, self)._load_records_write(values)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3776, in _load_records_write

self.write(values)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/website/models/ir_ui_view.py", line 41, in write

return super(View, self).write(vals)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 444, in write

return super(View, self).write(self._compute_defaults(vals))

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3347, in write

fields[0].determine_inverse(records)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/fields.py", line 1117, in determine_inverse

getattr(records, self.inverse)()

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 275, in _inverse_arch

view.write(data)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/website/models/ir_ui_view.py", line 41, in write

return super(View, self).write(vals)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/base/models/ir_ui_view.py", line 444, in write

return super(View, self).write(self._compute_defaults(vals))

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3321, in write

self._write(store_vals)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 3457, in _write

self._validate_fields(vals)

File "/opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/models.py", line 1112, in _validate_fields

raise ValidationError("%s\n\n%s" % (_("Error while validating constraint"), tools.ustr(e)))

odoo.tools.convert.ParseError: "Error while validating constraint

Element '<xpath expr="//group[@name='invoicing']">' cannot be located in parent view

Error context:

View `product.template.sales`

[view_id: 1809, xml_id: sale_management.product_template_sale_form_view, model: product.template, parent_id: 387]

None" while parsing /opt/bitnami/apps/odoo/lib/odoo-12.0.post20190618-py3.7.egg/odoo/addons/sale_management/views/sale_management_views.xml:97, near

<record model="ir.ui.view" id="product_template_sale_form_view">

<field name="name">product.template.sales</field>

<field name="model">product.template</field>

<field name="inherit_id" ref="product.product_template_form_view"/>

<field name="arch" type="xml">

<data><xpath expr="//group[@name='description']" position="attributes">

<attribute name="invisible">0</attribute>

</xpath>

<xpath expr="//group[@name='sale']" position="attributes">

<attribute name="invisible">0</attribute>

</xpath>

<xpath expr="//group[@name='invoicing']" position="attributes">

<attribute name="invisible">0</attribute>

</xpath>

<xpath expr="//group[@name='description']" position="attributes">

<attribute name="invisible">0</attribute>

</xpath>

</data></field>

</record>

Thanks you

Regards

As I can see you are using bitnami and I never used it before so you can try to create a new DB and install your apps and see if you will get the same error then you have to get the last Odoo bitnami version.

Related Posts Replies Views Activity
1
Nov 20
3113
2
Mar 16
3263
1
May 21
2984
1
Mar 20
1795
2
Nov 24
263