Ir al contenido
Menú
Se marcó esta pregunta
2 Respuestas
193 Vistas

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
Descartar
Mejor respuesta

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
Descartar
Mejor respuesta

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

Perhaps abandoned carts from eCommerce?

Avatar
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
1
may 25
1980
1
mar 25
2005
1
feb 25
7735
2
feb 25
4170
2
feb 25
2805