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

I am making a many2one field using domain to control the records.

what should I put to my file if the domain is using a value from the form but not hard code?

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

If it's not hard coded, you put the domain statement on the XML, i.e:

<field name="sequence_id" domain="[('documento_tipo_id','=',doc_type)]" />

 

doc_type and sequence_id are many2one objects on my form

อวตาร
ละทิ้ง