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

		<record model="board.note.type" id="note_project_type">
			<field name="name">Project</field>
		</record>

		<record model="ir.ui.view" id="view_task_tree">
			<field name="name">project.task.tree</field>
			<field name="model">project.task</field>
			<field name="type">tree</field>
			<field name="priority" eval="99"/>
			<field name="arch" type="xml">
				<tree string="My tasks" colors="red:date_deadline&lt;current_date;blue:date_deadline==current_date">
					<field name="name"/>
					<field name="project_id"/>
					<field name="date_deadline"/>
					<field name="planned_hours"/>
					<field name="effective_hours"/>
					<field name="priority"/>
				</tree>
			</field>
		</record>
		<record model="ir.actions.act_window" id="action_view_task_tree">
			<field name="name">My open tasks</field>
			<field name="res_model">project.task</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree,graph</field>
			<field name="domain">[('user_id','=',uid),('state','=','open')]</field>
			<field name="view_id" ref="view_task_tree" />
		</record>
		<record model="ir.actions.act_window" id="action_view_task_tree_deadline">
			<field name="name">My task's deadlines</field>
			<field name="res_model">project.task</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree,graph</field>
			<field name="domain">[('user_id','=',uid),('state','=','open'),('date_deadline','&lt;&gt;',False)]</field>
			<field name="view_id" ref="view_task_tree" />
		</record>

		<record model="ir.actions.act_window" id="action_view_board_note_tree">
			<field name="name">Public notes</field>
			<field name="res_model">board.note</field>
			<field name="view_type">form</field>
			<field name="view_mode">tree</field>
			<field name="domain">[('type','=','Project')]</field>
		</record>

		<record model="ir.ui.view" id="board_project_form">
			<field name="name">board.project.form</field>
			<field name="model">board.board</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Project">
					<hpaned>

						<child1>

							<action
								string="My open tasks"
								name="%(action_view_task_tree)d"
								colspan="4"
								height="220"
								width="510"/>

							<action
								string="My deadlines"
								name="%(action_view_task_tree_deadline)d"
								height="150"
								colspan="4"/>

							<action
								string="Public notes"
								name="%(action_view_board_note_tree)d"
								colspan="2"
								height="150"/>
							<action
								string="Public notes"
								name="%(action_view_board_note_tree)d"
								colspan="2"
								height="150"/>


						</child1>

						<child2>
							<button
								string="Menu"
								name="%(base.action_menu_admin)d"
								icon="gtk-ok"
								type="action"
								colspan="4"/>

							<action
								string="My timesheet"
								name="%(report_timesheet.action_timesheet_user_stat)d"
								colspan="4"/>

							<action
								string="My work"
								name="%(report_analytic_line.action_account_analytic_planning_stat_my_form)d"
								colspan="4"/>


						</child2>
					</hpaned>
				</form>
			</field>
		</record>

		<record model="ir.actions.act_window" id="open_board_sales_manager">
			<field name="name">Dashboard project member</field>
			<field name="res_model">board.board</field>
			<field name="view_type">form</field>
			<field name="view_mode">form</field>
			<field name="usage">menu</field>
			<field name="view_id" ref="board_project_form"/>
		</record>

		<menuitem
			name="Dashboards/Project member"
			action="open_board_sales_manager"
			sequence="1"
			id="menu_board_sales_manager"/>
	</data>
</terp>
