You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 

64 lines
2.8 KiB

<?xml version="1.0" encoding="UTF-8"?>
<odoo>
<!-- Tree view for project.task.template -->
<record id="project_task_template_view_tree" model="ir.ui.view">
<field name="name">project.task.template.view.tree</field>
<field name="model">project.task.template</field>
<field name="arch" type="xml">
<list>
<field name="name"/>
</list>
</field>
</record>
<!-- Form view for project.task.template -->
<record id="project_task_template_view_form" model="ir.ui.view">
<field name="name">project.task.template.view.form</field>
<field name="model">project.task.template</field>
<field name="arch" type="xml">
<form>
<sheet>
<group>
<field name="name"/>
</group>
<notebook>
<page name="tasks_page" string="Tasks">
<field name="task_ids">
<list editable="bottom">
<field name="name"/>
<field name="description" type="html"/>
<field name="user_ids"
widget="many2many_avatar_user"
optional="show"
domain="[('share', '=', False),
('active', '=', True)]"/>
<field name="state"/>
<button name="action_open_task"
type="object"
title="View Task"
string="View Task"
class="btn btn-link pull-right"/>
</list>
</field>
</page>
<page name="stages_page" string="Stages">
<field name="stage_ids"/>
</page>
</notebook>
</sheet>
</form>
</field>
</record>
<!-- Action window for project.task.template -->
<record id="project_task_template_action" model="ir.actions.act_window">
<field name="name">Project Templates</field>
<field name="res_model">project.task.template</field>
<field name="view_mode">list,form</field>
</record>
<!-- Menu item for Project Templates -->
<menuitem id="project_task_template_menu_action"
action="project_task_template_action"
parent="project.menu_project_config"/>
</odoo>