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

Hi I am trying to pass the value from a Many2many field to a Many2many field using the context attribute in the view.


<field name="vehicules" widget="one2many_list" context="{ 'default_problems':(1, problems)}">

default_problems and problems are both Many2many fields, I tried also (6,0,problems), but only 1 element of the Many2many field is passed from problems to default_problems.

Please some help, I am blocked with this and can't find a solution.
อวตาร
ละทิ้ง
ผู้เขียน คำตอบที่ดีที่สุด

help me please

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
3
ส.ค. 25
7765
0
ม.ค. 21
2493
Multiple Create Form Views same Model แก้ไขแล้ว
1
ธ.ค. 23
18254
fields context no working แก้ไขแล้ว
2
ส.ค. 18
4050
0
มี.ค. 15
5240