Odoo Help

Welcome!

This community 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.

0

Why do I get a server error when entering a serial number to an outgoing shipment?

By
Jason
on 4/4/13, 6:42 PM 577 views

Many of our products are tracked by serial numbers. In OpenERP v6.0, it works fine, however in our migrated and testing v7.0, I get the following error message:

OpenERP Server Error

Client Traceback (most recent call last): File "/opt/openerp/server/openerp/addons/web/http.py", line 203, in dispatch response["result"] = method(self, *self.params) File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1074, in call_kw return self._call_kw(req, model, method, args, kwargs) File "/opt/openerp/server/openerp/addons/web/controllers/main.py", line 1066, in _call_kw return getattr(req.session.model(model), method)(args, **kwargs) File "/opt/openerp/server/openerp/addons/web/session.py", line 43, in proxy result = self.proxy.execute_kw(self.session._db, self.session._uid, self.session._password, self.model, method, args, kw) File "/opt/openerp/server/openerp/addons/web/session.py", line 31, in proxy_method result = self.session.send(self.service_name, method, *args) File "/opt/openerp/server/openerp/addons/web/session.py", line 104, in send raise xmlrpclib.Fault(openerp.tools.ustr(e), formatted_info)

Server Traceback (most recent call last): File "/opt/openerp/server/openerp/addons/web/session.py", line 90, in send return openerp.netsvc.dispatch_rpc(service_name, method, args) File "/opt/openerp/server/openerp/netsvc.py", line 293, in dispatch_rpc result = ExportService.getService(service_name).dispatch(method, params) File "/opt/openerp/server/openerp/service/web_services.py", line 618, in dispatch res = fn(db, uid, params) File "/opt/openerp/server/openerp/osv/osv.py", line 188, in execute_kw return self.execute(db, uid, obj, method, *args, *kw or {}) File "/opt/openerp/server/openerp/osv/osv.py", line 131, in wrapper return f(self, dbname, args, *kwargs) File "/opt/openerp/server/openerp/osv/osv.py", line 197, in execute res = self.execute_cr(cr, uid, obj, method, args, *kw) File "/opt/openerp/server/openerp/osv/osv.py", line 185, in execute_cr return getattr(object, method)(cr, uid, args, *kw) File "/opt/openerp/server/openerp/addons/stock/stock.py", line 1409, in name_search ids = self.search(cr, uid, args, limit=limit, context=context) File "/opt/openerp/server/openerp/osv/orm.py", line 2354, in search return self._search(cr, user, args, offset=offset, limit=limit, order=order, context=context, count=count) File "/opt/openerp/server/openerp/osv/orm.py", line 4843, in _search query = self._where_calc(cr, user, args, context=context) File "/opt/openerp/server/openerp/osv/orm.py", line 4676, in _where_calc where_clause, where_params = e.to_sql() File "/opt/openerp/server/openerp/osv/expression.py", line 1205, in to_sql q, p = self.__leaf_to_sql(leaf) File "/opt/openerp/server/openerp/osv/expression.py", line 1156, in __leaf_to_sql query, params = self.__leaf_to_sql((left, '=', right), model) TypeError: __leaf_to_sql() takes exactly 2 arguments (3 given)

When I edit the outgoing shipment, click on the line item that needs a serial number, and then either starting to type in the SN or clicking the search arrow to choose from SNs that would already be in inventory and ready to ship.

Any help is appreciated, Jason

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

0 follower(s)

Stats

Asked: 4/4/13, 6:42 PM
Seen: 577 times
Last updated: 3/16/15, 8:10 AM