Hello.
I have problems with the Odoo rental app.
When I create a sales order in this module, it automatically places the order in the "Returned" status.
When I add the product, it is throwing me this error, however it lets me continue, it is probably related to this error and subsequent errors.
I would appreciate if someone could give me a help.
Notes:
- Odoo V14.
- Odoo Studio customizations.
- Multicompany.
Error:
Odoo Server Error
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/addons/base/models/ir_http.py", line 237, in _dispatch
result = request.dispatch()
File "/home/odoo/src/odoo/odoo/http.py", line 683, in dispatch
result = self._call_function(**self.params)
File "/home/odoo/src/odoo/odoo/http.py", line 359, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/http.py", line 347, in checked_call
result = self.endpoint(*a, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 912, in _call_
return self.method(*args, **kw)
File "/home/odoo/src/odoo/odoo/http.py", line 531, in response_wrap
response = f(*args, **kw)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1377, in call_kw
return self._call_kw(model, method, args, kwargs)
File "/home/odoo/src/odoo/addons/web/controllers/main.py", line 1369, in _call_kw
return call_kw(request.env[model], method, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 396, in call_kw
result = _call_kw_multi(method, model, args, kwargs)
File "/home/odoo/src/odoo/odoo/api.py", line 383, in _call_kw_multi
result = method(recs, *args, **kwargs)
File "/home/odoo/src/odoo/odoo/models.py", line 6232, in onchange
todo = [
File "/home/odoo/src/odoo/odoo/models.py", line 6235, in <listcomp>
if name not in done and snapshot0.has_changed(name)
File "/home/odoo/src/odoo/odoo/models.py", line 6066, in has_changed
return self[name] != record[name]
File "/home/odoo/src/odoo/odoo/models.py", line 5664, in _getitem_
return self.fields[key].get_(self, type(self))
File "/home/odoo/src/odoo/odoo/fields.py", line 1026, in _get_
raise ValueError("Compute method failed to assign %s.%s" % (record, self.name))
Exception
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/home/odoo/src/odoo/odoo/http.py", line 639, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/home/odoo/src/odoo/odoo/http.py", line 315, in _handle_exception
raise exception.with_traceback(None) from new_cause
ValueError: Compute method failed to assign sale.order.line(<NewId 0x7f8e0ef39250>,).rental_updatable