Skip to Content
Menu
This question has been flagged
1 Reply
1095 Views

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
Discard
Author

Is it even possible in Odoo Online?

Any help is much appreciated!

Thank you

Author

Thank you for your answer Sudhir.

Best Answer

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
Discard
Related Posts Replies Views Activity
1
Oct 24
176
2
Oct 24
1142
1
Aug 24
421
2
Nov 24
751
1
Jul 24
457