2021-08-13 12:50:46 +02:00
|
|
|
<?xml version="1.0" encoding="utf-8" ?>
|
2018-08-23 01:26:55 +02:00
|
|
|
<odoo>
|
|
|
|
<!--
|
2021-08-13 12:53:43 +02:00
|
|
|
Copyright 2018-20 ForgeFlow <http://www.forgeflow.com>
|
2018-08-23 01:26:55 +02:00
|
|
|
License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl.html).
|
|
|
|
-->
|
|
|
|
<record id="mail_activity_view_form_popup" model="ir.ui.view">
|
|
|
|
<field name="name">mail.activity.view.form.popup</field>
|
|
|
|
<field name="model">mail.activity</field>
|
2021-08-13 12:50:46 +02:00
|
|
|
<field name="inherit_id" ref="mail.mail_activity_view_form_popup" />
|
2018-08-23 01:26:55 +02:00
|
|
|
<field name="priority">20</field>
|
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="activity_type_id" position="after">
|
2021-08-13 12:50:46 +02:00
|
|
|
<field name="state" />
|
|
|
|
<field name="date_done" />
|
2018-08-23 01:26:55 +02:00
|
|
|
</field>
|
|
|
|
<button name="action_done" position="attributes">
|
2021-08-13 12:50:46 +02:00
|
|
|
<attribute
|
|
|
|
name="attrs"
|
|
|
|
>{'invisible':[('state', '=', 'done')]}</attribute>
|
2018-08-23 01:26:55 +02:00
|
|
|
</button>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mail_activity_view_search" model="ir.ui.view">
|
|
|
|
<field name="name">mail.activity.view.search</field>
|
|
|
|
<field name="model">mail.activity</field>
|
2021-08-13 12:50:46 +02:00
|
|
|
<field name="inherit_id" ref="mail.mail_activity_view_search" />
|
2018-08-23 01:26:55 +02:00
|
|
|
<field name="arch" type="xml">
|
2022-01-19 17:10:24 +01:00
|
|
|
<field name="res_model" position="after">
|
2021-08-13 12:50:46 +02:00
|
|
|
<field name="done" />
|
|
|
|
<field name="active" />
|
|
|
|
<filter
|
|
|
|
string="Completed Activities"
|
|
|
|
name="activities_completed"
|
|
|
|
domain="[('active', '=', False), ('state', '=', 'done')]"
|
|
|
|
/>
|
2018-08-23 01:26:55 +02:00
|
|
|
</field>
|
|
|
|
<filter name="activities_overdue" position="attributes">
|
2021-08-13 12:50:46 +02:00
|
|
|
<attribute
|
|
|
|
name="domain"
|
|
|
|
>[('date_deadline', '<', context_today().strftime('%Y-%m-%d'))]</attribute>
|
2018-08-23 01:26:55 +02:00
|
|
|
</filter>
|
|
|
|
<filter name="activities_today" position="attributes">
|
2021-08-13 12:50:46 +02:00
|
|
|
<attribute
|
|
|
|
name="domain"
|
|
|
|
>[('date_deadline', '=', context_today().strftime('%Y-%m-%d'))]</attribute>
|
2018-08-23 01:26:55 +02:00
|
|
|
</filter>
|
|
|
|
<filter name="activities_upcoming_all" position="attributes">
|
2021-08-13 12:50:46 +02:00
|
|
|
<attribute
|
|
|
|
name="domain"
|
|
|
|
>[('date_deadline', '>', context_today().strftime('%Y-%m-%d'))]</attribute>
|
2018-08-23 01:26:55 +02:00
|
|
|
</filter>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2019-05-07 17:24:53 +02:00
|
|
|
<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>
|
2021-08-13 12:50:46 +02:00
|
|
|
<field name="inherit_id" ref="mail.res_partner_view_search_inherit_mail" />
|
2019-05-07 17:24:53 +02:00
|
|
|
<field name="arch" type="xml">
|
2021-08-13 12:53:43 +02:00
|
|
|
<filter name="activities_overdue" position="before">
|
2021-08-13 12:50:46 +02:00
|
|
|
<filter
|
|
|
|
string="Open Activities"
|
|
|
|
name="activities_open"
|
|
|
|
domain="[('activity_ids.active', '=', True)]"
|
|
|
|
/>
|
|
|
|
<filter
|
|
|
|
string="Completed Activities"
|
|
|
|
name="activities_completed"
|
|
|
|
domain="[('activity_ids.active', '=', False), ('activity_ids.state', '=', 'done')]"
|
|
|
|
/>
|
2019-05-07 17:24:53 +02:00
|
|
|
</filter>
|
|
|
|
<filter name="activities_overdue" position="attributes">
|
2021-08-13 12:50:46 +02:00
|
|
|
<attribute
|
|
|
|
name="domain"
|
|
|
|
>[('activity_ids.date_deadline', '<', context_today().strftime('%Y-%m-%d'))]</attribute>
|
2019-05-07 17:24:53 +02:00
|
|
|
</filter>
|
|
|
|
<filter name="activities_today" position="attributes">
|
2021-08-13 12:50:46 +02:00
|
|
|
<attribute
|
|
|
|
name="domain"
|
|
|
|
>[('activity_ids.date_deadline', '=', context_today().strftime('%Y-%m-%d'))]</attribute>
|
2019-05-07 17:24:53 +02:00
|
|
|
</filter>
|
|
|
|
<filter name="activities_upcoming_all" position="attributes">
|
2021-08-13 12:50:46 +02:00
|
|
|
<attribute
|
|
|
|
name="domain"
|
|
|
|
>[('activity_ids.date_deadline', '>', context_today().strftime('%Y-%m-%d'))]</attribute>
|
2019-05-07 17:24:53 +02:00
|
|
|
</filter>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
2018-08-23 01:26:55 +02:00
|
|
|
<record id="mail_activity_view_tree" model="ir.ui.view">
|
|
|
|
<field name="name">mail.activity.view.tree</field>
|
|
|
|
<field name="model">mail.activity</field>
|
2021-08-13 12:50:46 +02:00
|
|
|
<field name="inherit_id" ref="mail.mail_activity_view_tree" />
|
2018-08-23 01:26:55 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="date_deadline" position="after">
|
2021-08-13 12:50:46 +02:00
|
|
|
<field name="state" />
|
|
|
|
<field name="date_done" />
|
2018-08-23 01:26:55 +02:00
|
|
|
</field>
|
|
|
|
<tree position="attributes">
|
|
|
|
<attribute name="decoration-muted">state == 'done'</attribute>
|
2021-08-13 12:50:46 +02:00
|
|
|
<attribute
|
|
|
|
name="decoration-danger"
|
|
|
|
>date_deadline < current_date and state != 'done'</attribute>
|
|
|
|
<attribute
|
|
|
|
name="decoration-success"
|
|
|
|
>date_deadline == current_date and state != 'done'</attribute>
|
2018-08-23 01:26:55 +02:00
|
|
|
</tree>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record id="mail_activity_view_calendar" model="ir.ui.view">
|
|
|
|
<field name="name">mail.activity.view.calendar</field>
|
|
|
|
<field name="model">mail.activity</field>
|
2021-08-13 12:50:46 +02:00
|
|
|
<field name="inherit_id" ref="mail.mail_activity_view_calendar" />
|
|
|
|
<field name="priority" eval="2" />
|
2018-08-23 01:26:55 +02:00
|
|
|
<field name="arch" type="xml">
|
|
|
|
<field name="summary" position="after">
|
2021-08-13 12:50:46 +02:00
|
|
|
<field name="state" />
|
|
|
|
<field name="date_done" />
|
2018-08-23 01:26:55 +02:00
|
|
|
</field>
|
|
|
|
</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
</odoo>
|