Skip to Content
Menu
This question has been flagged
2 Replies
2335 Views

Hi there,


When I Click the button "confirm"  in order to confirm an order sale, I get an  odoo Server Error, the same sometimes happens when I'm trying to save some changes after  I added some products lines in a quotation.


The error Below:


Error:
Odoo Server Error

Traceback (most recent call last):
  File "/opt/odoo/core-v11/odoo/fields.py", line 944, in __get__
    value = record.env.cache.get(record, self)
  File "/opt/odoo/core-v11/odoo/api.py", line 967, in get
    value = self._data[key][field][record._ids[0]]
KeyError: 70630

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/opt/odoo/core-v11/odoo/http.py", line 653, in _handle_exception
    return super(JsonRequest, self)._handle_exception(exception)
  File "/opt/odoo/core-v11/odoo/http.py", line 312, in _handle_exception
    raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
  File "/opt/odoo/core-v11/odoo/tools/pycompat.py", line 87, in reraise
    raise value
  File "/opt/odoo/core-v11/odoo/http.py", line 695, in dispatch
    result = self._call_function(**self.params)
  File "/opt/odoo/core-v11/odoo/http.py", line 344, in _call_function
    return checked_call(self.db, *args, **kwargs)
  File "/opt/odoo/core-v11/odoo/service/model.py", line 97, in wrapper
    return f(dbname, *args, **kwargs)
  File "/opt/odoo/core-v11/odoo/http.py", line 337, in checked_call
    result = self.endpoint(*a, **kw)
  File "/opt/odoo/core-v11/odoo/http.py", line 939, in __call__
    return self.method(*args, **kw)
  File "/opt/odoo/core-v11/odoo/http.py", line 517, in response_wrap
    response = f(*args, **kw)
  File "/opt/odoo/core-v11/addons/web/controllers/main.py", line 934, in call_kw
    return self._call_kw(model, method, args, kwargs)
  File "/opt/odoo/core-v11/addons/web/controllers/main.py", line 926, in _call_kw
    return call_kw(request.env[model], method, args, kwargs)
  File "/opt/odoo/core-v11/odoo/api.py", line 689, in call_kw
    return call_kw_multi(method, model, args, kwargs)
  File "/opt/odoo/core-v11/odoo/api.py", line 680, in call_kw_multi
    result = method(recs, *args, **kwargs)
  File "/opt/odoo/core-v11/addons/mail/models/mail_thread.py", line 284, in write
    result = super(MailThread, self).write(values)
  File "/opt/odoo/core-v11/addons/mail/models/mail_activity.py", line 344, in write
    return super(MailActivityMixin, self).write(vals)
  File "/opt/odoo/core-v11/odoo/models.py", line 3121, in write
    self._write(old_vals)
  File "/opt/odoo/core-v11/odoo/models.py", line 3354, in _write
    self.recompute()
  File "/opt/odoo/core-v11/odoo/models.py", line 4949, in recompute
    vals = {n: rec[n] for n in ns}
  File "/opt/odoo/core-v11/odoo/models.py", line 4949, in <dictcomp>
    vals = {n: rec[n] for n in ns}
  File "/opt/odoo/core-v11/odoo/models.py", line 4803, in __getitem__
    return self._fields[key].__get__(self, type(self))
  File "/opt/odoo/core-v11/odoo/fields.py", line 951, in __get__
    value = record.env.cache.get(record, self)
  File "/opt/odoo/core-v11/odoo/api.py", line 967, in get
    value = self._data[key][field][record._ids[0]]
KeyError: 70630




Avatar
Discard
Best Answer

Hi, Donabel


Generally this issue appears when some temporary data(Like data created by transient model). So, can you please let me which version of Odoo you are currently using also are you using any third party extension which are adding some functionality inside sale order extension?

Thanks,
Ashish Singh (Team Lead)
Webkul Software Private Limited

Avatar
Discard
Author Best Answer

Hi Ashish,


I'm using Odoo Enterprise V11 and I have several modules installed on it, but I can't  assure  that it is  something specially for the sale order extension.

I get these errors usually when I click  the button "confirm sales" or when I try to delete some products lines of a quotation.

These problems occur a lot in certain users.




Truly yours Donabel,


Avatar
Discard

Hi Donabel

As I mentioned this only appears when any temporary data of any relational data(which foreign key) is currently not present (deleted from the database) inside Odoo.

So can you please share the screenshot of the sale order view?

Thanks,

Ashish Singh (Team Lead)

Webkul Software Private Limited