[IMP] Add search filter for My Team Activities

pull/412/head
Adrià Gil Sorribes 2018-12-24 13:19:52 +01:00 committed by OCA-git-bot
parent 2da1b7f3c0
commit 1d581ea69f
1 changed files with 3 additions and 0 deletions

View File

@ -61,6 +61,9 @@
<xpath expr='//field[@name="user_id"]' position='before'> <xpath expr='//field[@name="user_id"]' position='before'>
<field name="team_id"/> <field name="team_id"/>
</xpath> </xpath>
<xpath expr='//filter[@name="activities_my"]' position='after'>
<filter name="my_team_activities" string="My Team Activities" domain="[('team_id.member_ids', '=', uid)]"/>
</xpath>
<group position='inside'> <group position='inside'>
<filter name='team' string="Team" context="{'group_by': 'team_id'}"/> <filter name='team' string="Team" context="{'group_by': 'team_id'}"/>
</group> </group>