2013-09-26 14:20:41 +02:00
|
|
|
<?xml version="1.0"?>
|
|
|
|
<!-- The COPYRIGHT file at the top level of this repository contains the full
|
2014-06-03 18:36:58 +02:00
|
|
|
copyright notices and license terms. -->
|
2013-09-26 14:20:41 +02:00
|
|
|
<tryton>
|
|
|
|
<data>
|
2014-04-17 20:34:12 +02:00
|
|
|
<record model="ir.ui.view" id="work_template_view_tree">
|
|
|
|
<field name="model">project.work</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="field_childs">children</field>
|
|
|
|
<field name="name">work_template_tree</field>
|
2013-09-26 14:20:41 +02:00
|
|
|
</record>
|
|
|
|
|
2014-04-17 20:34:12 +02:00
|
|
|
<record model="ir.ui.view" id="work_template_view_list">
|
|
|
|
<field name="model">project.work</field>
|
|
|
|
<field name="type">tree</field>
|
|
|
|
<field name="name">work_template_list</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="work_template_view_form">
|
|
|
|
<field name="model">project.work</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="name">work_template_form</field>
|
|
|
|
</record>
|
|
|
|
|
2013-09-26 14:20:41 +02:00
|
|
|
<record model="ir.action.act_window" id="project.act_work_tree">
|
|
|
|
<field name="domain">[('parent', '=', None),('template', '=', False)]</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window" id="project.act_work_list">
|
|
|
|
<field name="domain">[('template', '=', False)]</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window" id="project.act_project_tree">
|
|
|
|
<field name="domain">[('parent', '=', None),('template', '=', False)]</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window" id="project.act_project_form">
|
|
|
|
<field name="domain">[('type', '=', 'project'),('template', '=', False)]</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window" id="project.act_task_form">
|
|
|
|
<field name="domain">[('type', '=', 'task'),('template', '=', False)]</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window" id="act_work_tree">
|
|
|
|
<field name="name">Templates</field>
|
|
|
|
<field name="res_model">project.work</field>
|
|
|
|
<field name="domain">[('parent', '=', None),('template', '=', True)]</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window.view"
|
|
|
|
id="act_work_tree_view1">
|
|
|
|
<field name="sequence" eval="10"/>
|
2014-04-17 20:34:12 +02:00
|
|
|
<field name="view" ref="work_template_view_tree"/>
|
2013-09-26 14:20:41 +02:00
|
|
|
<field name="act_window" ref="act_work_tree"/>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window.view"
|
|
|
|
id="act_work_tree_view2">
|
|
|
|
<field name="sequence" eval="20"/>
|
2014-04-17 20:34:12 +02:00
|
|
|
<field name="view" ref="work_template_view_form"/>
|
2013-09-26 14:20:41 +02:00
|
|
|
<field name="act_window" ref="act_work_tree"/>
|
|
|
|
</record>
|
2014-04-18 09:32:27 +02:00
|
|
|
<menuitem parent="project.menu_configuration" action="act_work_tree"
|
2013-09-26 14:20:41 +02:00
|
|
|
id="menu_template_tree"/>
|
|
|
|
<record model="ir.action.act_window" id="act_work_list">
|
|
|
|
<field name="name">Templates</field>
|
|
|
|
<field name="res_model">project.work</field>
|
|
|
|
<field name="domain">[('template', '=', True)]</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window.view"
|
|
|
|
id="act_work_list_view1">
|
|
|
|
<field name="sequence" eval="10"/>
|
2014-04-17 20:34:12 +02:00
|
|
|
<field name="view" ref="work_template_view_list"/>
|
2013-09-26 14:20:41 +02:00
|
|
|
<field name="act_window" ref="act_work_list"/>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.act_window.view"
|
|
|
|
id="act_work_list_view2">
|
|
|
|
<field name="sequence" eval="20"/>
|
2014-04-17 20:34:12 +02:00
|
|
|
<field name="view" ref="work_template_view_form"/>
|
2013-09-26 14:20:41 +02:00
|
|
|
<field name="act_window" ref="act_work_list"/>
|
|
|
|
</record>
|
|
|
|
<menuitem parent="menu_template_tree" action="act_work_list"
|
|
|
|
id="menu_template_list"/>
|
|
|
|
|
|
|
|
<record model="ir.ui.view" id="create_from_template_start">
|
|
|
|
<field name="model">project_template.create_from_template_start</field>
|
|
|
|
<field name="type">form</field>
|
|
|
|
<field name="name">create_from_template</field>
|
|
|
|
</record>
|
|
|
|
|
|
|
|
<record model="ir.action.wizard" id="wizard_project_template_create">
|
|
|
|
<field name="name">Create Works</field>
|
|
|
|
<field name="wiz_name">project_template.create_from_template</field>
|
|
|
|
<field name="model">project.work</field>
|
|
|
|
</record>
|
|
|
|
<record model="ir.action.keyword" id="act_wizard_project_template_create_keyword">
|
|
|
|
<field name="keyword">form_action</field>
|
|
|
|
<field name="model">project.work,-1</field>
|
|
|
|
<field name="action" ref="wizard_project_template_create"/>
|
|
|
|
</record>
|
|
|
|
</data>
|
|
|
|
</tryton>
|