콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
1693 화면

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!

아바타
취소
작성자

Is it even possible in Odoo Online?

Any help is much appreciated!

Thank you

작성자

Thank you for your answer Sudhir.

베스트 답변

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.

아바타
취소
관련 게시물 답글 화면 활동
4
2월 25
2671
1
10월 24
1758
2
10월 24
3103
1
8월 24
2227
2
11월 24
3361