I want all my contacts to have a unique ID so that it will be easy to identify. I tried adding sequence but it only works when trying to create new contacts manually by clicking NEW contact option. I have contacts data in my CSV file. I want ODDO to automatically create a unique ID after I import. Is it possible?
Cette question a été signalée
Hi,
Add a custom field such as unique_id on res.partner.Override the create() method on res.partner and generate the sequence when the field is empty. This works for both manual creation and CSV imports.
Hope it helps
Hello,
Yes, this is possible, but not through the standard sequence behavior during CSV imports.
By default, sequence-generated IDs are usually assigned when contacts are created manually. For imported contacts, you can either:
- Include the unique reference values directly in your CSV before import, or
- Implement an automated action/customization that generates and assigns a sequence-based ID to contacts after they are imported.
This ensures every contact receives a unique reference even when created through bulk imports.
Hope this works for you! If you need any help implementing this or want a more optimized approach, feel free to reach out for further discussion.
Regards,
Zehntech Technologies Inc.
Vous appréciez la discussion ? Ne vous contentez pas de lire, rejoignez-nous !
Créez un compte dès aujourd'hui pour profiter de fonctionnalités exclusives et échanger avec notre formidable communauté !
S'inscrire| Publications associées | Réponses | Vues | Activité | |
|---|---|---|---|---|
|
Add contact ID
Résolu
|
|
3
sept. 22
|
5429 | |
|
|
2
oct. 25
|
1270 | ||
|
|
1
déc. 25
|
3186 | ||
|
|
2
nov. 25
|
2633 | ||
|
|
1
mai 25
|
3968 |
Hello
Yes it it possible through Automation Rule but, can you please tell that you are on Odoo sass plaform or on premise?