Odoo Help

0

Odoo Server Error sale_coupon.sale_order_view_form

By
Wim Kamerman
on 4/18/17, 5:45 AM 255 views

Hello, my Odoo installation is giving the following error when trying to view an order that has been placed through the webshop. Any suggestions on what to do?


Fout:
Odoo Server Error
Traceback (most recent call last):
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 638, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 675, in dispatch
    result = self._call_function(**self.params)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 331, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/service/model.py", line 119, in wrapper
    return f(dbname, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 324, in checked_call
    result = self.endpoint(*a, **kw)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 933, in __call__
    return self.method(*args, **kw)
  File "/home/odoo/src/odoo/saas-14/odoo/http.py", line 504, in response_wrap
    response = f(*args, **kw)
  File "/home/odoo/src/odoo/saas-14/addons/web/controllers/main.py", line 884, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/home/odoo/src/odoo/saas-14/addons/web/controllers/main.py", line 876, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/api.py", line 679, in call_kw
    return call_kw_model(method, model, args, kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/api.py", line 664, in call_kw_model
    result = method(recs, *args, **kwargs)
  File "/home/odoo/src/odoo/saas-14/odoo/models.py", line 1330, in load_views
    for [v_id, v_type] in views
  File "/home/odoo/src/odoo/saas-14/odoo/models.py", line 1330, in <dictcomp>
    for [v_id, v_type] in views
  File "/home/odoo/src/odoo/saas-14/addons/mail/models/mail_thread.py", line 362, in fields_view_get
    res = super(MailThread, self).fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
  File "/home/odoo/src/odoo/saas-14/odoo/models.py", line 1410, in fields_view_get
    result = self._fields_view_get(view_id=view_id, view_type=view_type, toolbar=toolbar, submenu=submenu)
  File "/home/odoo/src/odoo/saas-14/odoo/models.py", line 1373, in _fields_view_get
    root_view = View.browse(view_id).read_combined(['id', 'name', 'field_parent', 'type', 'model', 'arch'])
  File "/home/odoo/src/odoo/saas-14/odoo/addons/base/ir/ir_ui_view.py", line 690, in read_combined
    arch = self.apply_view_inheritance(arch_tree, root.id, self.model)
  File "/home/odoo/src/odoo/saas-14/odoo/addons/base/ir/ir_ui_view.py", line 639, in apply_view_inheritance
    source = self.apply_inheritance_specs(source, specs_tree, view_id)
  File "/home/odoo/src/odoo/saas-14/odoo/addons/base/ir/ir_ui_view.py", line 617, in apply_inheritance_specs
    self.raise_view_error(_("Element '%s' cannot be located in parent view") % tag, inherit_id)
  File "/home/odoo/src/odoo/saas-14/odoo/addons/base/ir/ir_ui_view.py", line 485, in raise_view_error
    raise ValueError(message)
ValueError: Element '<xpath expr="//page[@string='Other Information']">' kan niet worden gevonden in de bovenliggende weergave
Fout context:
Weergave`sale.order.form.inherit.coupon`
[view_id: 1299, xml_id: sale_coupon.sale_order_view_form, model: sale.order, parent_id: 1002]
0
IT Libertas
On 4/18/17, 1:28 PM

Hi,

according to the error: it seems that you are using some module called 'sale_coupon'. This app tries to update the xml view of sales orders, while using wrong parameters. It may be in case of 3 reasons:

  1. There are no tags (page[@string='Other Information']) this module uses

  2. This app was wrongly migrated. E.g. in Odoo 10 you can't use @string in xpath

  3. There are conflicts with other modules, which replace the same tag.

My advise is to remove sale_coupon for a while. If it fixes the situation - try to modify this module

0
Wim Kamerman
On 4/21/17, 7:10 AM

Hello IT Libertas!

Thanks for your response. Indeed, after removing sale_coupon the odoo installation works as expected.

Wim

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

Register

Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

1 follower(s)

Stats

Asked: 4/18/17, 5:45 AM
Seen: 255 times
Last updated: 4/21/17, 7:11 AM