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

When i restore my CE15 Database, error messages shown in following, how can i correction?


CGroup: /system.slice/odool5ce.service


2301 /opt/odool5ce/odool5ce-venv/bin/python3 /opt/odool5ce/odool5ce/odoo-bin -c /etc/odool5ce.conf

File "/opt/odool5ce/odool5ce/odoo/models.py", line 3970, in write

+ '\n\n({){), () {}'.format(_('Records:"), sub_ids[:6], ('User:'), self._uid)

odoo.exceptions.MissingError: One of the records you are trying to modify has already been deleted (Document type: Attachment).

(Records: (1,), User: 1)

Error when render the template

MissingError: One of the records you are trying to modify has already been deleted (Document type: Attachment). 21 02:47:03 odoo18 odool5ce [2301]:

(Records: (1,), User: 1)

Template: web.frontend_layout

Path: /t/html/head/t[1]

Node: <tt-call-assets-web.assets_common" t-ja-"false"/>


/opt/odool5ce

Avatar
Discard
Best Answer

Hi,


1- Odoo is trying to access an attachment (ir.attachment) record that doesn’t exist anymore in your restored DB.

This often happens when:

            * Database was restored without file store (filestore/ missing).

            * Some QWeb template assets (CSS/JS) point to attachments that no longer exist.

            * A module references an XML ID or attachment that got deleted.

Fix:-

        * Make sure you restored both the database and the filestore.

                    - If you only restored the database without filestore, Odoo can’t find assets stored as attachments.

       * Rebuild missing assets:

                      -Restart Odoo with -u web to force regeneration of web assets.


2- Error when render the template: web.frontend_layout

        * Odoo is failing while loading frontend layout assets (JS/CSS).

        * Likely cause: web.assets_common bundle is broken because related attachments are missing.

Fix:-

    * Update the Web module to rebuild assets.

    * Clear cache & assets, then restart Odoo.

    * If using reverse proxy (Nginx/Apache), clear browser cache as well.


Hope it helps

Avatar
Discard