[MERGE] Merged with addons/trunk.
authorThibault Delavallée <tde@openerp.com>
Thu, 19 Jul 2012 14:34:02 +0000 (16:34 +0200)
committerThibault Delavallée <tde@openerp.com>
Thu, 19 Jul 2012 14:34:02 +0000 (16:34 +0200)
bzr revid: tde@openerp.com-20120719143402-c1960p3gt863u07s

1  2 
addons/mail/mail_message_view.xml
addons/mail/static/src/xml/mail.xml

                  <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', '&lt;=', datetime.date.today().strftime('%%Y-%%m-%%d 23:59:59')),
 +                                        ('date', '&gt;=', 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', '&lt;=', datetime.date.today().strftime('%%Y-%%m-%%d 23:59:59')),
 +                                        ('date', '&gt;=', (datetime.date.today()-datetime.timedelta(days=7)).strftime('%%Y-%%m-%%d 00:00:00'))
 +                                    ]"/>
                  </search>
              </field>
          </record>
@@@ -1,11 -1,7 +1,11 @@@
  <?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%"/>