Odoo Help


Sales Order Transfer Error (v8)

Drake Malu
on 10/14/14, 8:03 PM 1,108 views

Since pulling from Github a while ago, I can no longer manually complete Sales Orders.

When completing the Delivery Order I get the following error after clicking 'Apply' on the Strock Transfer:

Traceback (most recent call last):
  File "/opt/odoo/odoo-server/openerp/http.py", line 500, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/odoo-server/openerp/http.py", line 517, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/odoo-server/openerp/http.py", line 283, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/service/model.py", line 113, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/http.py", line 280, in checked_call
    return self.endpoint(*a, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 733, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/odoo-server/openerp/http.py", line 376, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/odoo-server/addons/web/controllers/main.py", line 948, in call_button
    action = self._call_kw(model, method, args, {})
  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 237, in wrapper
    return old_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 391, in old_api
    result = new_api(recs, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 395, in new_api
    result = [method(rec, *args, **kwargs) for rec in self]
  File "/opt/odoo/odoo-server/addons/stock/wizard/stock_transfer_details.py", line 106, in do_detailed_transfer
  File "/opt/odoo/odoo-server/openerp/api.py", line 235, in wrapper
    return new_api(self, *args, **kwargs)
  File "/opt/odoo/odoo-server/openerp/api.py", line 464, in new_api
    result = method(self._model, cr, uid, *args, **kwargs)
TypeError: do_transfer() takes at least 4 arguments (4 given)


In addons/stock/wizard/stock_transfer_details.py on line 106: 



It looks like do_transfer is now supposed to be passed the values I see going between most functions/methods (cr, uid, ids, context), but they aren't being passed to the function containing line 106 (do_detailed_transfer).

Beyond that I'm kind of stumped, as I'm only just getting into Python from a PHP/MySQL background, and I don't even really know what those parameters signify.

Anyone have any helpful tips on how to proceed in fixing this simple-seeming bug?

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: 10/14/14, 8:03 PM
Seen: 1108 times
Last updated: 3/16/15, 8:10 AM