Odoo Help


Error When try to add product in quotation or Sale Order

on 1/6/16, 6:33 AM 1,541 views

When I try to add product in Quotation or sale order I got the following error:

Traceback (most recent call last):
  File "/opt/odoo/odoo-server/openerp/http.py", line 537, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/http.py", line 574, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo-server/openerp/http.py", line 310, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/service/model.py", line 118, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/http.py", line 307, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 803, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 403, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 944, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 936, in _call_kw
    return getattr(request.registry.get(model), method)(request.cr, request.uid, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 256, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 387, in old_api
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/models.py", line 5957, in onchange
    record._onchange_eval(name, field_onchange[name], result)
  File "/opt/odoo/odoo-server/openerp/models.py", line 5862, in _onchange_eval
    method_res = getattr(self._model, method)(*args, context=self._context)
AttributeError: 'sale.order.line' object has no attribute 'onchange_product_uom'

Can you provide version, and module installed ? thx

Jérémy Kersten (jke)
on 1/6/16, 8:40 AM
On 1/6/16, 1:38 PM

Issue solved, I was using a database created by updated server, there was a new functionality added in last update called onchange_product_uom
So in my server this functionality was not exist, after upgrade the sales module every thing seems ok.

My question now is what is the benifit of this functionality?

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: 1/6/16, 6:33 AM
Seen: 1541 times
Last updated: 4/11/16, 2:59 PM