Odoo Help


Odoo Server Error sale_coupon.sale_order_view_form

Wim Kamerman
on 4/18/17, 5:45 AM 363 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?

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:
[view_id: 1299, xml_id: sale_coupon.sale_order_view_form, model: sale.order, parent_id: 1002]

IT Libertas

--IT Libertas--
| 4 3 7
Saint Petersburg, Russian Federation
--IT Libertas--

Visit us: https://odootools.com/

IT Libertas is a team of developers and automation experts to help you to unlock Odoo ERP system's potential. We have been communicating with end users to whom the software became a main business tool since 2012. As a result, we are proud of dozens of successful Odoo apps developed.

We are open for new ideas and challenges to create the best Odoo tools for business needs all over the world

IT Libertas
On 4/18/17, 1:28 PM


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

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.


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.


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)


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