Browse Source

[IMP] Add search filter for My Team Activities

pull/340/head
Adrià Gil Sorribes 6 years ago
committed by mreficent
parent
commit
922ee65b50
  1. 3
      mail_activity_team/views/mail_activity_views.xml

3
mail_activity_team/views/mail_activity_views.xml

@ -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>

Loading…
Cancel
Save