Bỏ qua để đến Nội dung
Menu
Câu hỏi này đã bị gắn cờ
2 Trả lời
10255 Lượt xem

Hello All,

i have a many2many field and i want to apply domain in search view. But i'm getting following error while filtering "Uncaught Error: Failed to evaluate search criterions: ".
My xml code is here:

<record id="view_partner_fare_well_ser_search_master" model="ir.ui.view">
<field name="name">Farewell Room Search</field>
<field name="model">fare.well.room.ser</field>
<field name="arch" type="xml">
<search string="Farewell Room">
<group string="Order By">
<filter string="Farewell Room" context="{'group_by':'room'}" help="Farewell Room"/>
</group>
<field name="single_room_show"/>
<filter string="Farewell Room" domain="[('id','in',single_room_show and single_room_show[0] and
single_room_show[0][2] or False)]"
name="my_farewell_room_filter"/>
</search>
</field>
</record>

Thanks in advance

Ảnh đại diện
Huỷ bỏ

Here there is no possibility to search or group-by in many2many Field.

Tác giả

i have two types tree views with different actions. Add i want that in one view all records visible and another view selected records visible according to condition. For this, i gathered selected records in many2many field('single_room_show'). But when i applied domain in search view according to this many2many then above error shows. So, please give me appropriate solution for this problem

Câu trả lời hay nhất

Hello Pawan 

You can add the below filter in the search view it will help you.



Ảnh đại diện
Huỷ bỏ

<field name="category_id" filter_domain="[('category_id', 'child_of', self)]"/>

Câu trả lời hay nhất

try related field and put it on search.


Thank you.

Ảnh đại diện
Huỷ bỏ
Bài viết liên quan Trả lời Lượt xem Hoạt động
0
thg 8 22
2403
1
thg 7 22
20108
0
thg 4 22
3072
3
thg 9 21
3241
2
thg 9 21
4537