Skip to Content
Meniu
Trebuie să fiți înregistrat pentru a interacționa cu comunitatea.
Această întrebare a fost marcată
3 Răspunsuri
4231 Vizualizări

Hi all,

I am trying to find solution to add unique identifier for each contact that exists and that will be added in the future (db is v14). I had no luck so far, I see that here is some kind of solution but it's not explained https://www.odoo.com/forum/help-1/how-to-add-a-customer-id-64724

Can anyone please help. Thank you.

Imagine profil
Abandonează
Cel mai bun răspuns

You can create sequence. 

Then you can assign this sequence using automated action  on create or edit or on change of specific field. 

Imagine profil
Abandonează
Autor

Yes, I did it using sequence - here is post I found that really helped me https://www.odoo.com/forum/help-1/odoo-13-doesn-t-generate-a-sequence-number-167850

Cel mai bun răspuns

Hi,

See an sample use case with sequence and automated section generating unique barcode for products, similarly you can do for contacts in existing fields like or in new field.

Sequential value using automated action: https://www.youtube.com/watch?v=OCLGODE6lU0


Thanks

Imagine profil
Abandonează
Autor

Video is not available but I was able to do it using sequence

Cel mai bun răspuns

Each contact already has an internal odoo id, so you could just create a new view on the contact showing that field.

Imagine profil
Abandonează
Autor

I'm curious, how to get that field, what is its name?

I was thinking of 'id' when inside model 'res.user', but maybe there are other ids.

Related Posts Răspunsuri Vizualizări Activitate
1
feb. 21
7241
3
sept. 25
2658
0
aug. 25
211
1
aug. 25
2180
2
iul. 25
8075