Přejít na obsah
Menu
You need to be registered to interact with the community.
This question has been flagged
1 Odpovědět
193 Zobrazení

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!

Avatar
Zrušit
Nejlepší odpověď

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

Avatar
Zrušit
Related Posts Odpovědi Zobrazení Aktivita
0
čvc 25
1211
4
kvě 25
3097
0
kvě 25
1320
1
led 25
1691
1
čvn 25
1295