Browse Source

[FIX] search view

pull/380/head
Adrià Gil Sorribes 6 years ago
parent
commit
1db8566b8f
  1. 27
      mail_activity_done/views/mail_activity_views.xml

27
mail_activity_done/views/mail_activity_views.xml

@ -27,9 +27,9 @@
<field name="arch" type="xml"> <field name="arch" type="xml">
<field name="res_model_id" position="after"> <field name="res_model_id" position="after">
<field name="done"/> <field name="done"/>
<filter string="Open Activities" name="activities_open"
<filter string="Open Activities" name="activities_open"
domain="[('done', '!=', True)]"/> domain="[('done', '!=', True)]"/>
<filter string="Completed Activities" name="activities_completed"
<filter string="Completed Activities" name="activities_completed"
domain="[('done', '=', True)]"/> domain="[('done', '=', True)]"/>
</field> </field>
<filter name="activities_overdue" position="attributes"> <filter name="activities_overdue" position="attributes">
@ -44,6 +44,29 @@
</field> </field>
</record> </record>
<record id="res_partner_view_search_inherit_mail" model="ir.ui.view">
<field name="name">res.partner.view.search.inherit.mail</field>
<field name="model">res.partner</field>
<field name="inherit_id" ref="mail.res_partner_view_search_inherit_mail"/>
<field name="arch" type="xml">
<filter name="activities_my" position="after">
<filter string="Open Activities" name="activities_open"
domain="[('activity_ids.done', '!=', True)]"/>
<filter string="Completed Activities" name="activities_completed"
domain="[('activity_ids.done', '=', True)]"/>
</filter>
<filter name="activities_overdue" position="attributes">
<attribute name="domain">[('activity_ids.date_deadline', '&lt;', context_today().strftime('%Y-%m-%d')), ('activity_ids.done', '!=', True)]</attribute>
</filter>
<filter name="activities_today" position="attributes">
<attribute name="domain">[('activity_ids.date_deadline', '=', context_today().strftime('%Y-%m-%d')), ('activity_ids.done', '!=', True)]</attribute>
</filter>
<filter name="activities_upcoming_all" position="attributes">
<attribute name="domain">[('activity_ids.date_deadline', '&gt;', context_today().strftime('%Y-%m-%d')), ('activity_ids.done', '!=', True)]</attribute>
</filter>
</field>
</record>
<record id="mail_activity_view_tree" model="ir.ui.view"> <record id="mail_activity_view_tree" model="ir.ui.view">
<field name="name">mail.activity.view.tree</field> <field name="name">mail.activity.view.tree</field>
<field name="model">mail.activity</field> <field name="model">mail.activity</field>

Loading…
Cancel
Save