diff options
| author | Dharmang Soni <dpr@openerp.com> | 2017-12-28 16:53:51 +0530 |
|---|---|---|
| committer | Thibault Delavallée <tde@odoo.com> | 2018-03-27 13:26:41 +0200 |
| commit | f488dc58c37fdc7fd49df759165de641e213444b (patch) | |
| tree | 58fd69511a6afcabb27f4a39a382353af0ca3a78 /addons/mail/data/mail_activity_data.xml | |
| parent | 4265026ee23ab71e8b199a9d8cbbd439409d7a03 (diff) | |
[IMP] mail: allow to use stand alone activities as reminders
This commit allows to create personal reminders and to manage them using
activities. It is done using activities not necessarily linked to a record
but only to a user. Reminders can be used for example as a personal todo
list.
Technically we choose to model a reminder as an activity related to no
record. This means having a void res_id and model. An activity type is
added to classify reminders in it.
Settings reminder as done is not done like classic activities. Indeed classic
activities are unlinked and a message is logged on the related document.
As there is no document for reminders those are archived instead. It means
an active field is added as well as an override of toggle_archive to update
systray counter.
Activities systray widget is improved to display reminders in activities
list. This entry leads to a kanban view of activities allowing their
management. It is also possible to create them directly from the systray
allowing a quick creation of reminders.
This commit is related to task ID 41745. Closes #22143 .
Co-authored-by: Dharmang Soni <dpr@odoo.com>
Co-authored-by: Xavier Dollé <xdo@odoo.com>
Diffstat (limited to 'addons/mail/data/mail_activity_data.xml')
| -rw-r--r-- | addons/mail/data/mail_activity_data.xml | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/addons/mail/data/mail_activity_data.xml b/addons/mail/data/mail_activity_data.xml index 281d1915141..79f01eeaf02 100644 --- a/addons/mail/data/mail_activity_data.xml +++ b/addons/mail/data/mail_activity_data.xml @@ -19,5 +19,11 @@ <field name="icon">fa-tasks</field> <field name="days">5</field> </record> + <record id="mail_activity_data_reminder" model="mail.activity.type"> + <field name="name">Reminder</field> + <field name="category">reminder</field> + <field name="icon">fa-tasks</field> + <field name="days">0</field> + </record> </data> </odoo> |
