Passa al contenuto
Menu
È necessario essere registrati per interagire con la community.
La domanda è stata contrassegnata
1 Rispondi
1696 Visualizzazioni

Hello everyone,


Using Odoo Online, I have created a custom model, let's call it: Cars. inside its Form view, there's a text field (Field A) and an int field (Field B).

Then, I have created a few cars items, each car item has its own text inside their Field A while Field B remains at 0.


My problem is:

I created a many2many field inside Contact, and it's pointing to the Cars model. I can now select one of the cars I have previously created (Or create a new car item) for my contact.

But if I try to edit the int value of a car (Field B), it will also affect the original value and it will no longer be a 0.


I want to be able to have a car item for each contact, with its own values independent from the original list, like Contact A will have the car item called "ABC" with an int value of 5, while Contact B may have the same car "ABC" but with a different int value.

Is it possible to achieve that in Odoo Online?


Thank you very much!

Avatar
Abbandona
Autore

Is it even possible in Odoo Online?

Any help is much appreciated!

Thank you

Autore

Thank you for your answer Sudhir.

Risposta migliore

Instead of M2m you should create a O2m field.

So your O2m field will be a new table in which you will have a m2o of the Car, Field B, and so on. This way you can have different values of a Car for different Contacts.

Avatar
Abbandona
Post correlati Risposte Visualizzazioni Attività
4
feb 25
2676
1
ott 24
1758
2
ott 24
3103
1
ago 24
2227
2
nov 24
3362