Files
odoo_source/addons/project/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

5.6 KiB

1idnamemodel_id:idgroup_id:idperm_readperm_writeperm_createperm_unlink
2access_project_projectproject.projectmodel_project_projectproject.group_project_user1000
3access_project_project_managerproject.projectmodel_project_projectproject.group_project_manager1111
4access_project_project_stageproject.project_stagemodel_project_project_stagebase.group_user1000
5access_project_project_stage_managerproject.project_stage.managermodel_project_project_stageproject.group_project_manager1111
6access_project_task_type_userproject.task.type.usermodel_project_task_typebase.group_user1000
7access_project_task_type_project_userproject.task.type.project.usermodel_project_task_typeproject.group_project_user1111
8access_project_task_type_managerproject.task.type managermodel_project_task_typeproject.group_project_manager1111
9access_project_task_type_portaltask_type_portalproject.model_project_task_typebase.group_portal1000
10access_project_taskproject.taskmodel_project_taskproject.group_project_user1111
11access_report_project_task_userreport.project.task.usermodel_report_project_task_userproject.group_project_manager1000
12access_report_project_task_user_project_userreport.project.task.user.project.usermodel_report_project_task_userproject.group_project_user1000
13access_partner_task_userbase.res.partner userbase.model_res_partnerproject.group_project_user1000
14access_task_on_partnerproject.task on partnersmodel_project_taskbase.group_user1000
15access_task_portaltask_portalproject.model_project_taskbase.group_portal1000
16access_project_userproject.project on partnersmodel_project_projectbase.group_user1000
17access_project_portalproject_portalproject.model_project_projectbase.group_portal1000
18access_resource_calendarproject.resource_calendar userresource.model_resource_calendarproject.group_project_user1000
19access_resource_calendar_attendanceproject.resource_calendar_attendance userresource.model_resource_calendar_attendanceproject.group_project_user1000
20access_resource_calendar_leaves_userresource.calendar.leaves userresource.model_resource_calendar_leavesproject.group_project_user1111
21access_project_tags_allproject.project_tags_allmodel_project_tagsbase.group_user1000
22access_project_tags_managerproject.project_tags_managermodel_project_tagsproject.group_project_manager1111
23access_project_tags_portalproject_tags_portalproject.model_project_tagsbase.group_portal1000
24access_mail_activity_type_project_managermail.activity.type.project.managermail.model_mail_activity_typeproject.group_project_manager1111
25access_account_analytic_account_useraccount.analytic.accountanalytic.model_account_analytic_accountproject.group_project_user1000
26access_account_analytic_account_manageraccount.analytic.accountanalytic.model_account_analytic_accountproject.group_project_manager1111
27access_account_analytic_line_projectaccount.analytic.line projectanalytic.model_account_analytic_lineproject.group_project_manager1111
28access_project_task_type_delete_wizardproject.task.type.delete.wizardmodel_project_task_type_delete_wizardproject.group_project_manager1111
29access_project_project_stage_delete_wizardproject.project.stage.delete.wizardmodel_project_project_stage_delete_wizardproject.group_project_manager1111
30access_project_task_recurrenceproject.task.recurrencemodel_project_task_recurrenceproject.group_project_user1111
31project.access_project_task_burndown_chart_reportaccess_project_task_burndown_chart_reportproject.model_project_task_burndown_chart_reportproject.group_project_manager1111
32project.access_project_task_burndown_chart_report_useraccess_project_task_burndown_chart_report_userproject.model_project_task_burndown_chart_reportproject.group_project_user1000
33access_project_update_userproject.update.usermodel_project_updatebase.group_user1000
34access_project_update_portalproject.update.portalmodel_project_updatebase.group_portal0000
35access_project_update_project_userproject.update.project.usermodel_project_updateproject.group_project_user1111
36access_project_update_project_managerproject.update.project.managermodel_project_updateproject.group_project_manager1111
37access_project_milestone_userproject.milestone.usermodel_project_milestonebase.group_user1000
38access_project_milestone_portalproject.milestone.portalmodel_project_milestonebase.group_portal0000
39access_project_milestone_project_userproject.milestone.project.usermodel_project_milestoneproject.group_project_user1111
40access_project_milestone_project_managerproject.milestone.project.managermodel_project_milestoneproject.group_project_manager1111
41access_project_collaborator_managerproject.collaborator.managermodel_project_collaboratorproject.group_project_manager1111
42access_project_collaborator_userproject.collaborator.usermodel_project_collaboratorproject.group_project_user1000
43access_project_collaborator_portalproject.collaborator.portalmodel_project_collaboratorbase.group_portal1000
44access_project_share_managerproject.share.wizard.managermodel_project_share_wizardproject.group_project_manager1110
45access_project_personal_stageproject.personal.stage.usermodel_project_task_stage_personalbase.group_user1111
46access_mail_activity_plan_project_managermail.activity.plan.project.managermail.model_mail_activity_planproject.group_project_manager1111
47access_mail_activity_plan_template_project_managermail.activity.plan.template.project.managermail.model_mail_activity_plan_templateproject.group_project_manager1111