<?xml version="1.0"?>
<terp>
<data>

	#
	# Tasks by projects and users
	#

	<record model="ir.ui.view" id="view_task_project_user_form">
		<field name="name">report.project.task.user.form</field>
		<field name="model">report.project.task.user</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Tasks by Project and User">
				<field name="name" select="1"/>
				<field name="user_id" select="1"/>
				<field name="project_id" select="1"/>
				<field name="task_closed" select="1"/>
				<field name="hours_planned" select="1"/>
				<field name="hours_effective" select="1"/>
				<field name="hours_delay" select="1"/>
				<field name="closing_days"/>
			</form>
		</field>
	</record>


	<record model="ir.ui.view" id="view_task_project_user_tree">
		<field name="name">report.project.task.user.tree</field>
		<field name="model">report.project.task.user</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Tasks by projects and users">
				<field name="name" select="1"/>
				<field name="user_id" select="1"/>
				<field name="project_id" select="1"/>
				<field name="task_closed" select="1"/>
				<field name="hours_planned" select="1"/>
				<field name="hours_effective" select="1"/>
				<field name="hours_delay" select="1"/>
				<field name="closing_days"/>
			</tree>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_project_task_user_tree_month">
		<field name="name">report.project.task.user.tree</field>
		<field name="res_model">report.project.task.user</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree</field>
		<field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
	</record>
	<menuitem name="Reporting/Projects/This Month/Tasks finnished this month by project and user" action="action_project_task_user_tree_month" id="menu_project_task_user_tree_month"/>

	<record model="ir.actions.act_window" id="action_project_task_user_tree">
		<field name="name">report.project.task.user.tree</field>
		<field name="res_model">report.project.task.user</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree</field>
	</record>
	<menuitem name="Reporting/Projects/All Months/Tasks closed by project and user" action="action_project_task_user_tree" id="menu_project_task_user_tree"/>

	#
	# Tasks by projects
	#

	<record model="ir.ui.view" id="view_task_project_form">
		<field name="name">report.project.task.form</field>
		<field name="model">report.project.task</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Tasks by Project">
				<field name="name" select="1"/>
				<field name="project_id" select="1"/>
				<field name="task_closed" select="1"/>
				<field name="hours_planned" select="1"/>
				<field name="hours_effective" select="1"/>
				<field name="hours_delay" select="1"/>
				<field name="closing_days"/>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_task_project_tree">
		<field name="name">report.project.task.tree</field>
		<field name="model">report.project.task</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Tasks by project">
				<field name="name" select="1"/>
				<field name="project_id" select="1"/>
				<field name="task_closed" select="1"/>
				<field name="hours_planned" select="1"/>
				<field name="hours_effective" select="1"/>
				<field name="hours_delay" select="1"/>
				<field name="closing_days"/>
			</tree>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_project_task_tree_month">
		<field name="name">report.project.task.tree</field>
		<field name="res_model">report.project.task</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree</field>
		<field name="domain">[('name','=',time.strftime('%Y-%m-01'))]</field>
	</record>
	<menuitem name="Reporting/Projects/This Month/Tasks finnished this month by project" action="action_project_task_tree_month" id="menu_project_task_tree_month"/>

	<record model="ir.actions.act_window" id="action_project_task_tree">
		<field name="name">report.project.task.tree</field>
		<field name="res_model">report.project.task</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree</field>
	</record>
	<menuitem name="Reporting/Projects/All Months/Tasks closed by project" action="action_project_task_tree" id="menu_project_task_tree"/>

</data>
</terp>
