Ir al contenido
Menú
Se marcó esta pregunta
1 Responder
1694 Vistas

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
Descartar
Autor

Is it even possible in Odoo Online?

Any help is much appreciated!

Thank you

Autor

Thank you for your answer Sudhir.

Mejor respuesta

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
Descartar
Publicaciones relacionadas Respuestas Vistas Actividad
4
feb 25
2676
1
oct 24
1758
2
oct 24
3103
1
ago 24
2227
2
nov 24
3362