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

Friends,

How to set the following domain filter as default?

                 <filter string="file numbers" domain="[('file_no','ilike','TN%')]"/>

Thanks...

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

you can create a record rule for you module if you are using multi company 

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

           

1.provide name to filter
   <filter string="file numbers" name="file_numbers"  domain="[('file_no','ilike','TN%')]"/>


2. pass the filter in the context like this to the action window

<field name="context">{"search_default_file_numbersl":1}</field>

--->Hope this helps you

อวตาร
ละทิ้ง
Related Posts ตอบกลับ มุมมอง กิจกรรม
2
ก.พ. 16
4155
1
พ.ย. 22
102
1
ส.ค. 25
99
0
ก.ค. 25
931
Filters in multiple companies แก้ไขแล้ว
1
พ.ค. 25
1651