콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다

Hi everyone,

I’m facing an issue in my Odoo instance after deleting a journal record directly from the database. Since then, I’m getting this error message on the dashboard and unable to open any configuration menus or the Settings app:

Missing Record

Record does not exist or has been deleted.

(Record: account.journal(8,), User: 2)


I’ve already tried uninstalling and reinstalling the Accounting app, but the issue still persists. It seems that Odoo is still referencing the deleted journal ID (8) somewhere in configuration or user preferences.

⚙️ Environment:

  • Odoo Version: [ 18 Enterprise]
  • Server: odoo.sh

❓Looking for Help:

How can I safely remove or fix the broken reference to this deleted journal (ID 8) so that I can access Settings and Configuration menus again?

Any guidance or SQL queries to clean up these references would be very helpful.

Thanks in advance!

아바타
취소
베스트 답변

Hi,



The error occurs because a journal record (ID 8) was deleted directly from the database, bypassing Odoo’s ORM. Odoo maintains references to journals across multiple models—such as company defaults, user preferences, properties, config parameters, payments, and journal entries. Deleting the journal directly leaves “dangling references,” which causes the “Missing Record” error on the dashboard and prevents access to Settings or Configuration menus.


To resolve this, you need to identify all references to the deleted journal. This can be done with SQL queries checking tables like res_company (default sale or purchase journals), ir_property (default property values), ir_config_parameter (system parameters), account_move, and account_payment. Once identified, these references should either be nullified or replaced with a valid journal ID. For example, update company default journals to NULL or change journal IDs in payments and journal entries to a valid journal.


After cleaning up the references, restart the Odoo service and clear browser caches to ensure changes take effect. This will restore access to the Settings and Configuration menus. As a best practice, accounting and configuration records should never be deleted directly from SQL in production; they should be archived or removed via the Odoo interface to ensure all relational dependencies are handled correctly.


Hope it helps

아바타
취소
작성자

Thanks for your valuable feedback.

관련 게시물 답글 화면 활동
0
7월 25
1220
4
5월 25
3133
0
5월 25
1327
1
1월 25
1701
1
6월 25
1307