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

This is the full error Im having.


Error:

Odoo Server Error



Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/api.py", line 748, in get

value = self._data[field][record._ids[0]]

KeyError: 3095



During handling of the above exception, another exception occurred:



Traceback (most recent call last):

File "/home/odoo/src/odoo/odoo/fields.py", line 1038, in __get__

value = env\.cache\.get\(record,\ self\)

\ \ File\ "/home/odoo/src/odoo/odoo/api\.py",\ line\ 754,\ in\ get

\ \ \ \ raise\ CacheMiss\(record,\ field\)

odoo\.exceptions\.CacheMiss:\ \('res\.partner\(3095,\)\.credit',\ None\)



During\ handling\ of\ the\ above\ exception,\ another\ exception\ occurred:



Traceback\ \(most\ recent\ call\ last\):

\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 625,\ in\ _handle_exception

\ \ \ \ return\ super\(JsonRequest,\ self\)\._handle_exception\(exception\)

\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 311,\ in\ _handle_exception

\ \ \ \ raise\ pycompat\.reraise\(type\(exception\),\ exception,\ sys\.exc_info\(\)\[2\]\)

\ \ File\ "/home/odoo/src/odoo/odoo/tools/pycompat\.py",\ line\ 14,\ in\ reraise

\ \ \ \ raise\ value

\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 670,\ in\ dispatch

\ \ \ \ result\ =\ self\._call_function\(\*\*self\.params\)

\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 351,\ 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\ 340,\ in\ checked_call

\ \ \ \ result\ =\ self\.endpoint\(\*a,\ \*\*kw\)

\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 916,\ in\ __call__

\ \ \ \ return\ self\.method\(\*args,\ \*\*kw\)

\ \ File\ "/home/odoo/src/odoo/odoo/http\.py",\ line\ 516,\ in\ response_wrap

\ \ \ \ response\ =\ f\(\*args,\ \*\*kw\)

\ \ File\ "/home/odoo/src/odoo/addons/web/controllers/main\.py",\ line\ 1342,\ in\ call_kw

\ \ \ \ return\ self\._call_kw\(model,\ method,\ args,\ kwargs\)

\ \ File\ "/home/odoo/src/odoo/addons/web/controllers/main\.py",\ line\ 1334,\ in\ _call_kw

\ \ \ \ return\ call_kw\(request\.env\[model\],\ method,\ args,\ kwargs\)

\ \ File\ "/home/odoo/src/odoo/odoo/api\.py",\ line\ 390,\ in\ call_kw

\ \ \ \ result\ =\ _call_kw_multi\(method,\ model,\ args,\ kwargs\)

\ \ File\ "/home/odoo/src/odoo/odoo/api\.py",\ line\ 377,\ in\ _call_kw_multi

\ \ \ \ result\ =\ method\(recs,\ \*args,\ \*\*kwargs\)

\ \ File\ "/home/odoo/src/odoo/odoo/models\.py",\ line\ 2974,\ in\ read

\ \ \ \ vals\[name\]\ =\ convert\(record\[name\],\ record,\ use_name_get\)

\ \ File\ "/home/odoo/src/odoo/odoo/models\.py",\ line\ 5758,\ in\ __getitem__

\ \ \ \ return\ self\._fields\[key\]\.__get__\(self,\ type\(self\)\)

\ \ File\ "/home/odoo/src/odoo/odoo/fields\.py",\ line\ 1062,\ in\ __get__

\ \ \ \ self\.compute_value\(recs\)

\ \ File\ "/home/odoo/src/odoo/odoo/fields\.py",\ line\ 1147,\ in\ compute_value

\ \ \ \ records\._compute_field_value\(self\)

\ \ File\ "/home/odoo/src/odoo/odoo/models\.py",\ line\ 4018,\ in\ _compute_field_value

\ \ \ \ getattr\(self,\ field\.compute\)\(\)

\ \ File\ "/home/odoo/src/odoo/addons/account/models/partner\.py",\ line\ 253,\ in\ _credit_debit_get

\ \ \ \ """,\ where_params\)

\ \ File\ "/home/odoo/src/odoo/odoo/sql_db\.py",\ line\ 173,\ in\ wrapper

\ \ \ \ return\ f\(self,\ \*args,\ \*\*kwargs\)

\ \ File\ "/home/odoo/src/odoo/odoo/sql_db\.py",\ line\ 250,\ in\ execute

\ \ \ \ res\ =\ self._obj.execute(query, params)

psycopg2.ProgrammingError: invalid reference to FROM-clause entry for table "account_move_line"

LINE 3: ... LEFT JOIN account_account a ON (account_mo...

^

HINT: There is an entry for table "account_move_line", but it cannot be referenced from this part of the query.

Avatar
Discard
Best Answer

Enable debug level in odoo configuration to know exactly from where issue is coming.

log_level = debug 

in odoo.conf and restart odoo

Avatar
Discard
Related Posts Replies Views Activity
0
Mar 15
2785
1
Sep 24
175
0
Oct 23
726
2
May 23
1560
1
Apr 23
1750