Hi,
The under-mention Error had happened when I’m traying to add new fields in the vendor bill
could anyone help to solve this issue.
Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/odoo/src/odoo/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 912, in __call__
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/enterprise/industry_fsm_report/controllers/main.py", line 11, in edit_view
action = super(WebStudioController, self).edit_view(view_id, studio_view_arch, operations)
File "/home/odoo/src/odoo/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/enterprise/web_studio/controllers/main.py", line 662, in edit_view
self._set_studio_view(view, normalized_view)
File "/home/odoo/src/enterprise/web_studio/controllers/main.py", line 495, in _set_studio_view
studio_view.arch_db = arch
File "/home/odoo/src/odoo/odoo/fields.py", line 1127, in __set__
records.write({self.name: write_value})
File "/home/odoo/src/odoo/addons/website/models/theme_models.py", line 267, in write
res = super(IrUiView, other_views).write(vals)
File "/home/odoo/src/odoo/addons/website/models/ir_ui_view.py", line 68, in write
return super(View, self).write(vals)
File "/home/odoo/src/enterprise/web_studio/models/studio_mixin.py", line 28, in write
res = super(StudioMixin, self).write(vals)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 500, in write
res = super(View, self).write(self._compute_defaults(vals))
File "/home/odoo/src/odoo/odoo/models.py", line 3685, in write
real_recs._validate_fields(vals, inverse_fields)
File "/home/odoo/src/odoo/odoo/models.py", line 1260, in _validate_fields
check(self)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 385, in _check_xml
view_def = view.read_combined(['arch'])
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 809, in read_combined
arch = root.apply_view_inheritance(arch_tree, self.model)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 750, in apply_view_inheritance
return self._apply_view_inheritance(source, inherit_tree)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 758, in _apply_view_inheritance
source = view.apply_inheritance_specs(source, arch_tree)
File "/home/odoo/src/enterprise/web_studio/models/ir_ui_view.py", line 456, in apply_inheritance_specs
return self._apply_studio_specs(source, specs_tree)
File "/home/odoo/src/enterprise/web_studio/models/ir_ui_view.py", line 436, in _apply_studio_specs
self._check_parent_groups(source, spec)
File "/home/odoo/src/enterprise/web_studio/models/ir_ui_view.py", line 425, in _check_parent_groups
node = self.locate_node(source, spec)
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_ui_view.py", line 690, in locate_node
return locate_node(arch, spec)
File "/home/odoo/src/odoo/odoo/tools/template_inheritance.py", line 58, in locate_node
xPath = etree.ETXPath(expr)
File "src/lxml/xpath.pxi", line 478, in lxml.etree.ETXPath.__init__
File "src/lxml/xpath.pxi", line 421, in lxml.etree.XPath.__init__
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
File "", line None
lxml.etree.XPathSyntaxError: Invalid expression
will be nice if you can share the code that you have tried