Hi everyone,
We are using the Outlook Mail Plugin with Odoo 18 and we are facing an issue with automatic contact/company creation.
When a user receives an email from a sender that does not exist in Odoo, the plugin seems to automatically create a new contact/company in Odoo — without any manual action from the user. This is causing duplicate records, as the company already exists in our database with its Tax ID and complete information.
Questions:
- Is this automatic creation behaviour configurable? Is there a way to disable it or to trigger a match/merge with an existing record instead?
- If not, is there a known workaround to prevent duplicates when using the Outlook plugin?
For context: we are in a B2B environment where the Tax ID is our unique identifier for companies, so duplicates without Tax ID are particularly problematic.
Thanks in advance for your help.
Hello,
An incoming email sender does not match any existing partner, so new data created even if with different Tax ID. You required customization for this when creating the partner check the Tax with existing partner's Tax.
Let me know if you need any help for this
Thanks
Hi, thank you for your answer.
However, this is not what I am looking for. I do not need a Tax ID matching logic — I simply want to disable the automatic contact/company creation triggered by the Outlook Mail Plugin altogether.
Is there a configuration option (in Odoo settings or in the plugin itself) to prevent it from automatically creating new records in Odoo when an unknown sender is detected?
Thanks
Can you please check the incoming mail server and look ak this "Actions to perform on incoming mails" and ensure it is blank.
Hi, thank you but this is not related to the incoming mail server configuration in Odoo.
The issue is specifically with the Outlook Mail Plugin (the browser/desktop extension that connects Outlook to Odoo). It is this plugin that seems to automatically create contacts/companies in Odoo when an unknown sender is detected — independently of any incoming mail server setup.
Is there a setting within the plugin itself, or in Odoo's CRM/Contact configuration, that controls this automatic creation behaviour?
Thanks
No there is a no any direct configuration which prevent this..
Hi,
Thank you for confirming — that aligns with our own investigation.
Since there is no native configuration option, we are going to address this through a custom Odoo module that overrides the method responsible for contact creation in the `mail_plugin` module. The goal is to silently block any automatic creation of contacts/companies when an unknown sender is detected, while keeping all other plugin functionalities intact (email logging, opportunity creation, etc.).
Thanks again for your help.
Best regards,
Yes this is a good approach to customize the controller of mail_plugin related to this.