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?
Esta pregunta ha sido marcada
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.
¿Le interesa esta conversación? ¡Participe en ella!
Cree una cuenta para poder utilizar funciones exclusivas e interactuar con la comunidad.
Inscribirse| Publicaciones relacionadas | Respuestas | Vistas | Actividad | |
|---|---|---|---|---|
|
Add contact ID
Resuelto
|
|
3
sept 22
|
5410 | |
|
|
2
oct 25
|
1270 | ||
|
|
1
dic 25
|
3167 | ||
|
|
2
nov 25
|
2613 | ||
|
|
1
may 25
|
3955 |
Hello
Yes it it possible through Automation Rule but, can you please tell that you are on Odoo sass plaform or on premise?