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

Hi,

suppose i have student form

it contain

student_name:fields.many2one('res.partner','Student Name'),

'division':fields.many2one('div.class','Division'),   suppose[A,B,C,D]

 

####

For that when I create student form ,it should automatically come Division-'C' ,never populate 'A' how to change my code

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

 To Load Priority in a many2one form:-

   In the many2one master table set  _order = 'division_fieldname desc'  based on your requirement.

To Filter Data in a many2one form:

   To add domain in the field.

อวตาร
ละทิ้ง