Issue for transport_module (#1,382)
Status: OPEN
Date: 14/06/2021
Assigned to
Hanee Patel

Dear Sir,

When I create a receipts in inventory it have the problem as below.

Traceback (most recent call last):
File "/opt/odoo/odoo/", line 638, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo/odoo/", line 675, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo/odoo/", line 331, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo/odoo/service/", line 119, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo/odoo/", line 324, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo/odoo/", line 933, in __call__
return self.method(*args, **kw)
File "/opt/odoo/odoo/", line 504, in response_wrap
response = f(*args, **kw)
File "/opt/odoo/addons/web/controllers/", line 885, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/opt/odoo/addons/web/controllers/", line 877, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/opt/odoo/odoo/", line 679, in call_kw
return call_kw_model(method, model, args, kwargs)
File "/opt/odoo/odoo/", line 664, in call_kw_model
result = method(recs, *args, **kwargs)
File "/opt/odoo/addons/tgi_customised/transport_module/models/", line 50, in create
return res
UnboundLocalError: local variable 'res' referenced before assignment
what's should I do? (Odoo 10 version)

Best regards,


Message and communication history