Skip to Content
Menu
This question has been flagged
1 Reply
1888 Views

I have an error in odoo 13, like this ?

Error:
Odoo Server Error

Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/api.py", line 745, in get
value = self._data[field][record._ids[0]]
KeyError: 9

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/fields.py", line 1004, in __get__
value = env.cache.get(record, self)
File "/opt/odoo13/odoo/odoo/api.py", line 751, in get
raise CacheMiss(record, field)
odoo.exceptions.CacheMiss: ('ir.sequence(9,).number_next_actual', None)

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
File "/opt/odoo13/odoo/odoo/http.py", line 624, in _handle_exception
return super(JsonRequest, self)._handle_exception(exception)
File "/opt/odoo13/odoo/odoo/http.py", line 310, in _handle_exception
raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])
File "/opt/odoo13/odoo/odoo/tools/pycompat.py", line 14, in reraise
raise value
File "/opt/odoo13/odoo/odoo/http.py", line 669, in dispatch
result = self._call_function(**self.params)
File "/opt/odoo13/odoo/odoo/http.py", line 350, in _call_function
return checked_call(self.db, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/service/model.py", line 94, in wrapper
return f(dbname, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/http.py", line 339, in checked_call
result = self.endpoint(*a, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 915, in __call__
return self.method(*args, **kw)
File "/opt/odoo13/odoo/odoo/http.py", line 515, in response_wrap
response = f(*args, **kw)
File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1285, in search_read
return self.do_search_read(model, fields, offset, limit, domain, sort)
File "/opt/odoo13/odoo/addons/web/controllers/main.py", line 1304, in do_search_read
return Model.web_search_read(domain, fields, offset=offset, limit=limit, order=sort)
File "/opt/odoo13/odoo/addons/web/models/models.py", line 39, in web_search_read
records = self.search_read(domain, fields, offset=offset, limit=limit, order=order)
File "/opt/odoo13/odoo/odoo/models.py", line 4929, in search_read
result = records.read(fields)
File "/opt/odoo13/odoo/odoo/models.py", line 2960, in read
vals[name] = convert(record[name], record, use_name_get)
File "/opt/odoo13/odoo/odoo/models.py", line 5709, in __getitem__
return self._fields[key].__get__(self, type(self))
File "/opt/odoo13/odoo/odoo/fields.py", line 1028, in __get__
self.compute_value(recs)
File "/opt/odoo13/odoo/odoo/fields.py", line 1113, in compute_value
records._compute_field_value(self)
File "/opt/odoo13/odoo/odoo/models.py", line 3981, in _compute_field_value
getattr(self, field.compute)()
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_sequence.py", line 96, in _get_number_next_actual
seq.number_next_actual = _predict_nextval(self, seq_id)
File "/opt/odoo13/odoo/odoo/addons/base/models/ir_sequence.py", line 68, in _predict_nextval
self.env.cr.execute(query % {'seq_id': seq_id})
File "/opt/odoo13/odoo/odoo/sql_db.py", line 173, in wrapper
return f(self, *args, **kwargs)
File "/opt/odoo13/odoo/odoo/sql_db.py", line 250, in execute
res = self._obj.execute(query, params)
psycopg2.ProgrammingError: relation "ir_sequence_016" does not exist
LINE 6: FROM ir_sequence_016
^


what's wrong ?

Avatar
Discard
Best Answer

Hi Hasan,

It seems like ir.sequence record which you are using is removed.

And ID of ir.sequence record is 9. Please check in the database that is there any ir.sequence record with ID 9.

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 15
2970
1
Nov 17
11340
0
Jan 16
3822