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

hello,

i explain my problem: i want to complete the society form which there is many2one field with res_partner relation which represent principal contact . At the end of the form there is a notebook which one2many relation to res_partner to add contacts of the society. In the contact form there is a boolean field which add to select if the contat is the principal. I want that if the field is selected put automatically in the society form(above) the contact_id .

Do you think there is a solution for that

thanks a lot

อวตาร
ละทิ้ง

Sorry I am confused,

Which field is selected to put automatically in the society form (the boolean)?

And where in the society form do you want the contact_id (in the principal contact or in the society contacts one2many)?

ผู้เขียน คำตอบที่ดีที่สุด

yes i know i would use on change methode but with wich comportment i want the contact_id in the society contact many2one field which refer to the selected boolean field in the contact form 

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

you can use on_change method

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
partner of society แก้ไขแล้ว
1
ก.ย. 16
2933
2
ก.ย. 16
48
3
ม.ค. 25
3787
4
มิ.ย. 20
6193
1
ก.พ. 25
1874