Skip to Content
Menu
This question has been flagged
2 Replies
195 Views

I have a relatively new Odoo 18 Enterprise database (without activities...) with a whole series of completely unknown email addresses in the contacts (see screenshot: https://www.directupload.eu/file/d/9066/kurcc2jf_png.htm). 

Where do these come from?


How can I eliminate these contacts?


When I try to delete them, I get the following message:

Validation Error

The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead.

Model: Sales Order (sale.order)

Constraint: sale_order_partner_id_fkey


Avatar
Discard
Best Answer

Hi,


In Odoo 18 Enterprise, unknown email addresses appearing in your Contacts list are often created automatically when Odoo processes incoming emails or imports data from external sources such as web forms or integrations. Whenever Odoo encounters a new email address in a message, lead, or document, it generates a new contact record, which explains why these unfamiliar entries appear.


You cannot delete these contacts directly because they are linked to other records, as indicated by the validation error referencing sale_order_partner_id_fkey. To resolve this, you can either archive the contacts to hide them while keeping your data intact or reassign their related records (like sales orders or leads) to the correct contact before deleting them.


It’s also advisable to review your email gateway and system integrations to ensure that Odoo isn’t unintentionally creating contacts from incoming emails or catchall addresses. Disabling unnecessary automatic contact creation will help prevent this issue from recurring.



Hope it helps

Avatar
Discard
Best Answer

The error is telling you these Contacts are linked to Sales Orders.

Perhaps abandoned carts from eCommerce?

Avatar
Discard
Related Posts Replies Views Activity
1
May 25
1980
1
Mar 25
2005
1
Feb 25
7743
2
Feb 25
4172
2
Feb 25
2806