Skip to Content
เมนู
คุณต้องลงทะเบียนเพื่อโต้ตอบกับคอมมูนิตี้
คำถามนี้ถูกตั้งค่าสถานะ
1 ตอบกลับ
5660 มุมมอง

I have two models that have a Many2Many relationship and I'm wondering how can I provide an action/link/field that will allow the end-user to view how each of these models relate to each other.

E.g.

Model 1: Car PK: ID Field1: Name (char) Field2: Drivers (Many2Many2 - Driver (see below))

Model 2: Driver PK: ID Field1: Name (char)

I have defined the Many2Many relationship between Car and Driver in the Car Model and, to my understanding, that's all I need to do get get the Many2Many working.

I have a view that lists Cars and another that lists Drivers. In the Cars view, I'm able to add a field that will list and add/remove the Drivers associated with the Cars.

How can I achieve the same for the Driver view?

อวตาร
ละทิ้ง
คำตอบที่ดีที่สุด

Try this Link having question similar to yours:

http://help.openerp.com/question/20602/how-many2many-defined-for-custom-module/?answer=20735#post-id-20735
อวตาร
ละทิ้ง
ผู้เขียน

I should also state that I need to perform this in the Web UI, not in code or developing a custom module.

Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ธ.ค. 17
9759
16
ธ.ค. 23
33180
0
มี.ค. 15
7315
1
ก.พ. 24
2070
4
ม.ค. 24
23214