This commit introduces generic activities to use in your addons. Activities are actions user have to take on a document like making a phonecall or organizing a meeting. Activities come with the mail module as they are integrated in the Chatter but are not bundled with mail.thread. New models are * mail.activity.type: used to categorize activities. Each type is a different kind of activity e.g. call, mail, meeting. An activity can be generic i.e. available for all models using activities; or specific to a model in which case res_model_id field should be used. * mail.activity: an actual activity to perform. Activities are linked to documents using res_id and res_model_id fields. Activities have a deadline that can be used in kanban view to display a status. Once done activities are unlinked and a message is posted. This message has a new activity_type_id field that indicates the activity linked to the message. This commit introduces a mail.activity mixin to use in various addons that enables the activities feature. It works like the mail.thread mixin. It defines a activity_ids one2many field toward activities using res_id and res_model_id. Various related / computed fields are also added to have a global status of activities on documents. Activities come with a new JS widget for the form view. It is integrated in the Chatter widget although it is a separate widget. It displays activities linked to the current record and allow to schedule, edit and mark done activities. Use widget="mail_activity" on activity_ids field in form view to use it. There is also a kanban widget defined. It defines a small widget to integrate in kanban vignettes. It allow to manage activities directly from the kanban view. Use widget="kanban_activity" on activitiy_ids field in kanban view to use it. Next commits will aim at integrating activities inside main Odoo addons. Thanks to R&D India for their work and testing on this task. Thanks to belgian Usabiliteam for reviewing and testing it. Thanks to @jem-odoo for the final review. May his soul lie in peace with the trumpets of paradise.
3.6 KiB
3.6 KiB
| 1 | id | name | model_id:id | group_id:id | perm_read | perm_write | perm_create | perm_unlink |
|---|---|---|---|---|---|---|---|---|
| 2 | access_mail_message_all | mail.message.all | model_mail_message | 1 | 0 | 0 | 0 | |
| 3 | access_mail_message_portal | mail.message.portal | model_mail_message | base.group_portal | 1 | 1 | 1 | 1 |
| 4 | access_mail_message_user | mail.message.user | model_mail_message | base.group_user | 1 | 1 | 1 | 1 |
| 5 | access_mail_mail_all | mail.mail.all | model_mail_mail | 1 | 0 | 0 | 0 | |
| 6 | access_mail_mail_portal | mail.mail.portal | model_mail_mail | base.group_portal | 1 | 1 | 1 | 0 |
| 7 | access_mail_mail_user | mail.mail.user | model_mail_mail | base.group_user | 1 | 1 | 1 | 0 |
| 8 | access_mail_mail_system | mail.mail.system | model_mail_mail | base.group_system | 1 | 1 | 1 | 1 |
| 9 | access_mail_followers_all | mail.followers.all | model_mail_followers | 1 | 0 | 0 | 0 | |
| 10 | access_mail_followers_portal | mail.followers.portal | model_mail_followers | base.group_portal | 1 | 1 | 1 | 0 |
| 11 | access_mail_followers_user | mail.followers.user | model_mail_followers | base.group_user | 1 | 1 | 1 | 0 |
| 12 | access_mail_followers_system | mail.followers.system | model_mail_followers | base.group_system | 1 | 1 | 1 | 1 |
| 13 | access_mail_notification_portal | mail.notification.portal | model_mail_notification | base.group_portal | 1 | 0 | 0 | 0 |
| 14 | access_mail_notification_user | mail.notification.user | model_mail_notification | base.group_user | 1 | 1 | 1 | 0 |
| 15 | access_mail_notification_system | mail.notification.system | model_mail_notification | base.group_system | 1 | 1 | 1 | 1 |
| 16 | access_mail_channel_all | mail.group.all | model_mail_channel | 1 | 0 | 0 | 0 | |
| 17 | access_mail_channel_user | mail.group.user | model_mail_channel | base.group_user | 1 | 1 | 1 | 1 |
| 18 | access_mail_channel_partner_public | mail.channel.partner.public | model_mail_channel_partner | base.group_public | 1 | 0 | 0 | 0 |
| 19 | access_mail_channel_partner_portal | mail.channel.partner.portal | model_mail_channel_partner | base.group_portal | 1 | 1 | 1 | 1 |
| 20 | access mail_channel_partner_user | mail.channel.partner.user | model_mail_channel_partner | base.group_user | 1 | 1 | 1 | 1 |
| 21 | access_mail_alias_all | mail.alias.all | model_mail_alias | 1 | 0 | 0 | 0 | |
| 22 | access_mail_alias_user | mail.alias.user | model_mail_alias | base.group_user | 1 | 1 | 1 | 1 |
| 23 | access_mail_alias_system | mail.alias.system | model_mail_alias | base.group_system | 1 | 1 | 1 | 1 |
| 24 | access_mail_message_subtype_all | mail.message.subtype.all | model_mail_message_subtype | 1 | 0 | 0 | 0 | |
| 25 | access_mail_message_subtype_user | mail.message.subtype.user | model_mail_message_subtype | 1 | 1 | 1 | 1 | |
| 26 | access_mail_tracking_value_all | mail.tracking.value.all | model_mail_tracking_value | 1 | 0 | 0 | 0 | |
| 27 | access_mail_tracking_value_portal | mail.tracking.value.portal | model_mail_tracking_value | base.group_portal | 1 | 1 | 1 | 1 |
| 28 | access_mail_tracking_value_user | mail.tracking.value.user | model_mail_tracking_value | base.group_user | 1 | 1 | 1 | 1 |
| 29 | access_mail_tracking_value_system | mail.tracking.value.system | model_mail_tracking_value | base.group_system | 1 | 1 | 1 | 1 |
| 30 | access_mail_thread_all | mail.thread.all | model_mail_thread | 1 | 1 | 1 | 1 | |
| 31 | access_publisher_warranty_contract_all | publisher.warranty.contract.all | model_publisher_warranty_contract | 1 | 1 | 1 | 1 | |
| 32 | access_mail_template | mail.template | model_mail_template | base.group_user | 1 | 1 | 1 | 0 |
| 33 | access_mail_template_system | mail.template_system | model_mail_template | base.group_system | 1 | 1 | 1 | 1 |
| 34 | access_mail_shortcode | mail.shortcode | model_mail_shortcode | base.group_user | 1 | 1 | 1 | 1 |
| 35 | access_mail_shortcode_portal | mail.shortcode.portal | model_mail_shortcode | base.group_portal | 1 | 0 | 0 | 0 |
| 36 | access_mail_test_all | mail.test.all | model_mail_test | base.group_user | 1 | 1 | 1 | 1 |
| 37 | access_mail_activity_all | mail.activity.all | model_mail_activity | 1 | 0 | 0 | 0 | |
| 38 | access_mail_activity_user | mail.activity.user | model_mail_activity | base.group_user | 1 | 1 | 1 | 1 |
| 39 | access_mail_activity_type_all | mail.activity.type.all | model_mail_activity_type | 1 | 0 | 0 | 0 | |
| 40 | access_mail_activity_type_user | mail.activity.type.user | model_mail_activity_type | base.group_user | 1 | 1 | 1 | 1 |