| 1 |
<?xml version="1.0" encoding="utf-8"?> |
| 2 |
<odoo> |
| 3 |
<data> |
| 4 |
<record id="mail_activity_plan_view_form_project_and_task" model="ir.ui.view"> |
| 5 |
<field name="name">mail.activity.plan.view.form.project.and.task</field> |
| 6 |
<field name="model">mail.activity.plan</field> |
| 7 |
<field name="mode">primary</field> |
| 8 |
<field name="priority">32</field> |
| 9 |
<field name="inherit_id" ref="mail.mail_activity_plan_view_form"/> |
| 10 |
<field name="arch" type="xml"> |
| 11 |
<xpath expr="//field[@name='res_model']" position="attributes"> |
| 12 |
<attribute name="widget">filterable_selection</attribute> |
| 13 |
<attribute name="options">{'whitelisted_values': ['project.project', 'project.task']}</attribute> |
| 14 |
</xpath> |
| 15 |
<xpath expr="//field[@name='template_ids']/list" position="attributes"> |
| 16 |
<attribute name="editable">bottom</attribute> |
| 17 |
</xpath> |
| 18 |
</field> |
| 19 |
</record> |
| 20 |
|
| 21 |
<record id="mail_activity_plan_action_config_project_task_plan" model="ir.actions.act_window"> |
| 22 |
<field name="name">Activity Plans</field> |
| 23 |
<field name="res_model">mail.activity.plan</field> |
| 24 |
<field name="path">project-activity-plans</field> |
| 25 |
<field name="view_mode">list,kanban,form</field> |
| 26 |
<field name="search_view_id" ref="mail.mail_activity_plan_view_search"/> |
| 27 |
<field name="context">{'default_res_model': 'project.task'}</field> |
| 28 |
<field name="domain">[('res_model', 'in', ('project.project', 'project.task'))]</field> |
| 29 |
<field name="help" type="html"> |
| 30 |
<p class="o_view_nocontent_smiling_face"> |
| 31 |
Create a Task Activity Plan |
| 32 |
</p> |
| 33 |
<p> |
| 34 |
Activity plans are used to assign a list of activities in just a few clicks |
| 35 |
(e.g. "Progress Report", "Stand-up Meeting", ...) |
| 36 |
</p> |
| 37 |
</field> |
| 38 |
</record> |
| 39 |
|
| 40 |
<record id="mail_activity_plan_action_project_task_view_tree" model="ir.actions.act_window.view"> |
| 41 |
<field name="sequence">1</field> |
| 42 |
<field name="view_mode">list</field> |
| 43 |
<field name="view_id" ref="mail.mail_activity_plan_view_tree"/> |
| 44 |
<field name="act_window_id" ref="project.mail_activity_plan_action_config_project_task_plan"/> |
| 45 |
</record> |
| 46 |
|
| 47 |
<!-- Force the project view that allows to modify the target models of the plan to project or task. --> |
| 48 |
<record id="mail_activity_plan_action_project_task_view_form" model="ir.actions.act_window.view"> |
| 49 |
<field name="sequence">2</field> |
| 50 |
<field name="view_mode">form</field> |
| 51 |
<field name="view_id" ref="project.mail_activity_plan_view_form_project_and_task"/> |
| 52 |
<field name="act_window_id" ref="project.mail_activity_plan_action_config_project_task_plan"/> |
| 53 |
</record> |
| 54 |
</data> |
| 55 |
</odoo> |