Add is_animator filter to search view

This commit is contained in:
Youssef Elouahby 2018-10-23 16:27:35 +01:00
parent 41c7339221
commit 9deb04a196

View File

@ -0,0 +1,37 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
Copyright 2017-2018 Fabien Bourgeois <fabien@yaltik.com>
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <http://www.gnu.org/licenses/>.
-->
<odoo>
<data>
<!-- Searches -->
<record model="ir.ui.view" id="res_partner_search_inherit_golem_activity">
<field name="name">Partner GOLEM Activity improvement</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="base.view_res_partner_filter" />
<field name="arch" type="xml">
<filter name="filter_my_partners" position="before">
<filter name="is_animator" string="Is Animator"
domain="[('is_animator', '=', True)]" />
<separator />
</filter>
</field>
</record>
</data>
</odoo>