Files
odoo_source/addons/mail/security/ir.model.access.csv
T
Pierre-Yves Dufays 35d5342887 [IMP] {test_}mail, various: generalize activity plan + activity batch schedule
Generalize the hr.employee activity plan to any model, allowing to create
activity plan that can be launched on any model.

The activity can now be created in batch by selecting multiple record in the
list view and then clicking on a "clock" icon in a row similarly to the batch
records update (selecting multiple records allows to change for example their
name in batch in the list view). We implement also that functionality for the
plan, allowing to launch a plan on multiple records at once.

We also centralize the launching of activity or activity plan through either
the  "Activities" button in the chatter or the "clock" button in the view list.

Scheduling activity is now taken in charge by a wizard that can schedule a
single activity as well as a plan. We add/update tests for checking that the
wizard is launched with the right record selection (on a single record or a
batch) and add tests for checking the wizard itself.

The plan can be defined through an added menu in the technical admin menu but
also through configuration menu added in the module crm, project.

Technical notes:
In the added wizard, to determine that there is a error, we introduce the
has_error field because we cannot use easily the error field for that. Indeed,
to determine that there is no error, we have to compare it to "<p><br></p>"
(more precisely &lt;p&gt;&lt;br&gt;&lt;/p&gt;) which is not handy and may
change in the future. This is because when we write False on field error and
read it after, we get "<p><br></p>". Instead, we centralize this weird
comparison in the model in the compute method of has_error.

The ActivityListPopover still displays the activity of the record on which it
has been triggered but the button to schedule activity will launch a wizard
that create activities in batch for the selected records if more than one was
selected. For that, the ActivityListPopover component receives now an
additional prop: resIds (selected records) on top of the resId prop (record on
which the popup has been triggered). Note that when the line that trigger the
popup is not selected, the batch mode is disabled to avoid confusion.

Test are updated because the wizard is opened instead of the activity form to
schedule a new activity and as the form view is only used to edit already
existing activities, default_res_id and default_res_model are no longer passed.

We defines date_deadline and date_plan_deadline in the schedule wizard because
those date are managed differently (default value, required or not, ...).

Task-3390865

Part-of: odoo/odoo#137969
2023-10-12 16:12:09 +00:00

8.1 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_fetchmail_serverfetchmail.servermodel_fetchmail_serverbase.group_system1111
3access_mail_message_allmail.message.allmodel_mail_messagebase.group_public1000
4access_mail_message_portalmail.message.portalmodel_mail_messagebase.group_portal1111
5access_mail_message_usermail.message.usermodel_mail_messagebase.group_user1111
6access_mail_message_scheduled_allmail.message.scheduled.allmodel_mail_message_schedule0000
7access_mail_message_scheduled_systemmail.message.scheduled.systemmodel_mail_message_schedulebase.group_system1111
8access_mail_mail_allmail.mail.allmodel_mail_mail0000
9access_mail_mail_portalmail.mail.portalmodel_mail_mailbase.group_portal0000
10access_mail_mail_usermail.mail.usermodel_mail_mailbase.group_user0000
11access_mail_mail_systemmail.mail.systemmodel_mail_mailbase.group_system1111
12access_mail_followers_allmail.followers.allmodel_mail_followers0000
13access_mail_followers_usermail.followers.usermodel_mail_followersbase.group_user1000
14access_mail_followers_systemmail.followers.systemmodel_mail_followersbase.group_system1111
15access_mail_notification_portalmail.notification.portalmodel_mail_notificationbase.group_portal1000
16access_mail_notification_usermail.notification.usermodel_mail_notificationbase.group_user1110
17access_mail_notification_systemmail.notification.systemmodel_mail_notificationbase.group_system1111
18access_discuss_channel_publicdiscuss.channel.allmodel_discuss_channelbase.group_public1000
19access_discuss_channel_portaldiscuss.channel.allmodel_discuss_channelbase.group_portal1000
20access_discuss_channel_userdiscuss.channel.usermodel_discuss_channelbase.group_user1110
21access_discuss_channel_admindiscuss.channel.systemmodel_discuss_channelbase.group_system1111
22access_discuss_channel_member_publicdiscuss.channel.member.publicmodel_discuss_channel_memberbase.group_public1000
23access_discuss_channel_member_portaldiscuss.channel.member.portalmodel_discuss_channel_memberbase.group_portal1111
24access_discuss_channel_member_userdiscuss.channel.member.usermodel_discuss_channel_memberbase.group_user1111
25access_discuss_channel_rtc_session_alldiscuss.channel.rtc.session.allmodel_discuss_channel_rtc_session0000
26access_discuss_channel_rtc_session_systemdiscuss.channel.rtc.session.systemmodel_discuss_channel_rtc_sessionbase.group_system1111
27access_mail_alias_allmail.alias.allmodel_mail_alias0000
28access_mail_alias_usermail.alias.usermodel_mail_aliasbase.group_user1000
29access_mail_alias_systemmail.alias.systemmodel_mail_aliasbase.group_system1111
30access_mail_gateway_allowed_systemmail.gateway.allowed.systemmodel_mail_gateway_allowedbase.group_system1111
31access_mail_message_reaction_allmail.message.reaction.allmodel_mail_message_reaction0000
32access_mail_message_reaction_systemmail.message.reaction.systemmodel_mail_message_reactionbase.group_system1111
33access_mail_message_subtype_publicmail.message.subtype.allmodel_mail_message_subtypebase.group_public1000
34access_mail_message_subtype_portalmail.message.subtype.allmodel_mail_message_subtypebase.group_portal1000
35access_mail_message_subtype_usermail.message.subtype.usermodel_mail_message_subtypebase.group_user1000
36access_mail_message_subtype_systemmail.message.subtype.systemmodel_mail_message_subtypebase.group_system1111
37access_mail_tracking_value_allmail.tracking.value.allmodel_mail_tracking_value0000
38access_mail_tracking_value_portalmail.tracking.value.portalmodel_mail_tracking_valuebase.group_portal0000
39access_mail_tracking_value_usermail.tracking.value.usermodel_mail_tracking_valuebase.group_user0000
40access_mail_tracking_value_systemmail.tracking.value.systemmodel_mail_tracking_valuebase.group_system1111
41access_publisher_warranty_contract_allpublisher.warranty.contract.allmodel_publisher_warranty_contractbase.group_system1111
42access_mail_templatemail.templatemodel_mail_templatebase.group_user1111
43access_mail_template_editormail.template_editormodel_mail_templatemail.group_mail_template_editor1111
44access_mail_template_systemmail.template_systemmodel_mail_templatebase.group_system1111
45access_mail_shortcodemail.shortcodemodel_mail_shortcodebase.group_user1111
46access_mail_shortcode_portalmail.shortcode.portalmodel_mail_shortcodebase.group_portal1000
47access_mail_activity_allmail.activity.allmodel_mail_activity0000
48access_mail_activity_usermail.activity.usermodel_mail_activitybase.group_user1111
49access_mail_activity_plan_allmail.activity.plan.allmodel_mail_activity_plan0000
50access_mail_activity_plan_usermail.activity.plan.usermodel_mail_activity_planbase.group_user1000
51access_mail_activity_plan_systemmail.activity.plan.systemmodel_mail_activity_planbase.group_system1111
52access_mail_activity_plan_template_allmail.activity.plan.template.allmodel_mail_activity_plan_template0000
53access_mail_activity_plan_template_usermail.activity.plan.template.usermodel_mail_activity_plan_templatebase.group_user1000
54access_mail_activity_plan_template_systemmail.activity.plan.template.systemmodel_mail_activity_plan_templatebase.group_system1111
55access_mail_activity_schedule_allmail.activity.schedule.allmodel_mail_activity_schedule0000
56access_mail_activity_schedule_usermail.activity.schedule.usermodel_mail_activity_schedulebase.group_user1110
57access_mail_activity_type_allmail.activity.type.allmodel_mail_activity_type0000
58access_mail_activity_type_usermail.activity.type.usermodel_mail_activity_typebase.group_user1000
59access_mail_activity_type_systemmail.activity.type.systemmodel_mail_activity_typebase.group_system1111
60access_mail_blacklist_systemaccess_mail_blacklist_systemmodel_mail_blacklistbase.group_system1111
61access_mail_wizard_inviteaccess.mail.wizard.invitemodel_mail_wizard_invitebase.group_user1110
62access_mail_compose_messageaccess.mail.compose.messagemodel_mail_compose_messagebase.group_user1110
63access_mail_compose_message_portalaccess.mail.compose.message.portalmodel_mail_compose_messagebase.group_portal1110
64access_mail_resend_messageaccess.mail.resend.messagemodel_mail_resend_messagebase.group_user1110
65access_mail_resend_partneraccess.mail.resend.partnermodel_mail_resend_partnerbase.group_user1110
66access_mail_template_previewaccess.mail.template.previewmodel_mail_template_previewbase.group_user1110
67access_mail_blacklist_remove_systemacesss.mail.blacklist.remove.systemmodel_mail_blacklist_removebase.group_system1111
68access_mail_guest_allmail.guestmodel_mail_guest0000
69access_mail_guest_usermail.guestmodel_mail_guestbase.group_user1000
70access_mail_guest_systemmail.guestmodel_mail_guestbase.group_system1111
71access_mail_ice_server_allmail.ice.server.allmodel_mail_ice_server0000
72access_mail_ice_server_systemmail.ice.server.systemmodel_mail_ice_serverbase.group_system1111
73access_res_users_settings_volumes_allres.users.settings.volumesmodel_res_users_settings_volumes0000
74access_res_users_settings_volumes_userres.users.settings.volumesmodel_res_users_settings_volumesbase.group_user1111
75access_mail_template_resetaccess.mail.template.resetmodel_mail_template_resetmail.group_mail_template_editor1111
76ir_actions_report_access_userir.actions.report.access.userbase.model_ir_actions_reportbase.group_user1000
77access_mail_link_preview_adminmail.link.preview.adminmodel_mail_link_previewbase.group_erp_manager1111
78access_discuss_gif_favoritediscuss.gif.favoritemodel_discuss_gif_favoritebase.group_user1111
79access_discuss_voice_metadata_userdiscuss.voice.metadata.usermodel_discuss_voice_metadata0000
80access_mail_partner_deviceaccess_mail_partner_devicemail.model_mail_partner_devicebase.group_user0000
81access_mail_notification_web_pushaccess_mail_notification_web_pushmail.model_mail_notification_web_pushbase.group_user0000