<search string="Messages Search">
<field name="user_id"/>
<field name="body"/>
- <field name="model" string="Message" filter_domain="['|', ('subject', 'ilike', self), ('body_text', 'ilike', self)]" />
++ <field name="subject"/>
+ <field name="type"/>
+ <filter icon="terp-personal+" string="My Feeds"
+ name="my_feeds" help="My Feeds"
+ domain="[('user_id','=',uid)]"/>
+ <filter icon="terp-personal+" string="Comments"
+ name="comments" help="Comments"
+ domain="[('type', '=', 'comment')]"/>
+ <filter icon="terp-personal+" string="Notifications"
+ name="notifications" help="Notifications"
+ domain="[('type', '=', 'notification')]"/>
+ <filter icon="terp-personal+" string="Emails"
+ name="emails" help="Emails"
+ domain="[('type', '=', 'email')]"/>
+ <filter icon="terp-go-today" string="Today"
+ name="today" help="Today"
+ domain="[ ('date', '<=', datetime.date.today().strftime('%%Y-%%m-%%d 23:59:59')),
+ ('date', '>=', datetime.date.today().strftime('%%Y-%%m-%%d 00:00:00'))
+ ]"/>
+ <filter icon="terp-go-week" string="This week"
+ name="7_days" help="This week"
+ domain="[ ('date', '<=', datetime.date.today().strftime('%%Y-%%m-%%d 23:59:59')),
+ ('date', '>=', (datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d 00:00:00'))
+ ]"/>
</search>
</field>
</record>
<?xml version="1.0" encoding="UTF-8"?>
<template>
- <div t-name="mail.Wall" class="oe_view_manager oe_mail_wall oe_view_manager_current">
+ <!--
+ wall main template
+ Template used to display the communication history in the wall.
+ -->
- <div t-name="mail.wall" class="oe_view_manager oe_mail_wall oe_view_manager_global">
++ <div t-name="mail.wall" class="oe_view_manager oe_mail_wall oe_view_manager_current">
<table class="oe_view_manager_header">
<colgroup>
<col width="33%"/>