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?
Dette spørgsmål er blevet anmeldt
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.
Kan du lide at diskutere? Læs ikke bare med, deltag aktivt i debatten!
Opret en konto i dag for at få glæde af eksklusive funktioner, og bliv en del af vores skønne fællesskab!
Tilmeld dig| Relaterede indlæg | Besvarelser | Visninger | Aktivitet | |
|---|---|---|---|---|
|
Add contact ID
Løst
|
|
3
sep. 22
|
5440 | |
|
|
2
okt. 25
|
1270 | ||
|
|
1
dec. 25
|
3203 | ||
|
|
2
nov. 25
|
2648 | ||
|
|
1
maj 25
|
3979 |
Hello
Yes it it possible through Automation Rule but, can you please tell that you are on Odoo sass plaform or on premise?