Hello,
After upgrading my database from odoo 13 to odoo 16 , When I restore database I have these problems:
ERROR: insert or update on table "mail_mail_res_partner_rel" violates foreign key constraint "mail_mail_res_partner_rel_mail_mail_id_fkey"
DETAIL: Key (mail_mail_id)=(249093) is not present in table "mail_mail".
ERROR: insert or update on table "mail_notification" violates foreign key constraint "mail_message_res_partner_needaction_rel_mail_id_fkey"
DETAIL: Key (mail_mail_id)=(249093) is not present in table "mail_mail".
These errors appears only on the test server, on the local does not appear.
Please can you help me to solve these errors.