Files
odoo_source/addons/project/wizard/project_task_merge_wizard_views.xml
T
Yannick Tivisse d1bd102b4b [IMP] project: add a wizard to merge tasks
This wizard allows the users to merge some task in a new task or an existing one

A user and a project are taken by default but may be configurable on the wizard.

The other tasks are archived. A message is posted on the tasks to report the target and a message is posted on the target to report the origin tasks.
2016-12-02 14:47:23 +01:00

51 lines
2.4 KiB
XML

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<record id="project_task_merge_wizard_form" model="ir.ui.view">
<field name='name'>project.task.merge.wizard.form</field>
<field name='model'>project.task.merge.wizard</field>
<field name='arch' type='xml'>
<form string='Merge Tasks'>
<sheet>
<group>
<group>
<field name="user_id"/>
<field name="task_ids" widget="many2many_tags"/>
</group>
<group>
<field name="create_new_task"/>
<field name="target_task_name" attrs="{'invisible': [('create_new_task', '=', False)], 'required': [('create_new_task', '=', True)]}"/>
<field name="target_project_id" attrs="{'invisible': [('create_new_task', '=', False)], 'required': [('create_new_task', '=', True)]}"/>
<field name="target_task_id" attrs="{'invisible': [('create_new_task', '=', True)], 'required': [('create_new_task', '=', False)]}"/>
</group>
</group>
<span class="text-muted">NB: This will archive the selected tasks (Except the destination task)</span>
</sheet>
<footer>
<button name='merge_tasks' string='Merge Tasks' class='oe_highlight' type='object'/>
<button special="cancel" string="Cancel" type="object" class="btn btn-default oe_inline"/>
</footer>
</form>
</field>
</record>
<act_window
id="project_task_actions_act_window_merge_tasks"
res_model="project.task.merge.wizard"
src_model="project.task"
target="new"
multi="True"
key2="client_action_multi"
view_mode="form"
name="Merge Selected Tasks"/>
<act_window
id="project_task_actions_act_window_merge_tasks"
res_model="project.task.merge.wizard"
src_model="project.task"
target="new"
multi="False"
key2="client_action_multi"
view_mode="form"
name="Merge Selected Tasks"/>
</odoo>