[IMP] project: add menu to configure project-related activity types
Activity types are currently hard to find and define. In this commit we add a menu under project configuration to access generic or project related activity types (task, issue). This commit is an improvement considered as an usability fix, therefore targeting stable version.
This commit is contained in:
committed by
Thibault Delavallée
parent
78e0c08b03
commit
0f17d3a348
@@ -631,6 +631,18 @@ action = model.activate_sample_project()
|
||||
action="project_task_action_activity"
|
||||
sequence="25"/>
|
||||
|
||||
<!-- Activity types config -->
|
||||
<record id="mail_activity_type_action_config_project_types" model="ir.actions.act_window">
|
||||
<field name="name">Activity Types</field>
|
||||
<field name="res_model">mail.activity.type</field>
|
||||
<field name="view_type">form</field>
|
||||
<field name="view_mode">tree,form</field>
|
||||
<field name="domain">['|', ('res_model_id', '=', False), ('res_model_id.model', '=', 'project.task')]</field>
|
||||
</record>
|
||||
<menuitem id="project_menu_config_activity_type"
|
||||
action="mail_activity_type_action_config_project_types"
|
||||
parent="menu_project_config"/>
|
||||
|
||||
<record id="action_view_task_overpassed_draft" model="ir.actions.act_window">
|
||||
<field name="name">Overpassed Tasks</field>
|
||||
<field name="res_model">project.task</field>
|
||||
|
||||
@@ -372,4 +372,8 @@
|
||||
parent="project.menu_project_management"
|
||||
action="project_issue_action_activity"
|
||||
sequence="25"/>
|
||||
|
||||
<record id="project.mail_activity_type_action_config_project_types" model="ir.actions.act_window">
|
||||
<field name="domain">['|', ('res_model_id', '=', False), ('res_model_id.model', 'in', ['project.task', 'project.issue'])]</field>
|
||||
</record>
|
||||
</odoo>
|
||||
|
||||
Reference in New Issue
Block a user