如何在搜索视图中为odoo 10应用Many2many字段过滤器

时间:2018-05-07 06:13:16

标签: filter many-to-many odoo odoo-10

enter image description here我有一个很多2字段,我想在搜索视图中应用域名。但我在过滤时遇到以下错误"未捕获错误:无法评估搜索条件:"。 我的xml代码在这里:

<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>[![enter image description here][1]][1]

0 个答案:

没有答案