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

		<record model="board.note.type" id="note_account_type">
			<field name="name">Accountants</field>
		</record>


		<record model="ir.actions.act_window" id="action_account_analytic_line_to_invoice">
			<field name="name">report.account.analytic.line.tree</field>
			<field name="res_model">report.account.analytic.line.to.invoice</field>
			<field name="view_type">form</field>
			<field name="view_mode">graph,tree</field>
		</record>

		<record model="ir.actions.act_window" id="action_aged_receivable">
			<field name="name">report.account.receivable.graph</field>
			<field name="res_model">report.account.receivable</field>
			<field name="view_type">form</field>
			<field name="view_mode">graph,tree</field>
			<field name="domain">[('type','=','receivable')]</field>
		</record>
		<record model="ir.actions.act_window" id="action_aged_income">
			<field name="name">report.account.income.graph</field>
			<field name="res_model">report.account.receivable</field>
			<field name="view_type">form</field>
			<field name="view_mode">graph,tree</field>
			<field name="domain">[('type','=','income')]</field>
		</record>


		<record model="ir.ui.view" id="board_account_form">
			<field name="name">board.account.form</field>
			<field name="model">board.board</field>
			<field name="type">form</field>
			<field name="arch" type="xml">
				<form string="Account Board">
					<hpaned>

						<child1>

							<action
								string="Analytic accounts to close"
								name="%(report_analytic.action_analytic_account_tree)d"
								colspan="4"
								height="160"
								width="510"/>

							<action
								string="Uninvoiced quotations"
								name="%(sale.action_order_tree3)d"
								height="160"
								colspan="4"/>

							<action
								string="Draft invoices"
								name="%(account.action_invoice_tree5)d"
								colspan="4"
								height="160"/>
						</child1>

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

							<action
								string="Costs to invoice"
								name="%(action_account_analytic_line_to_invoice)d"
								height="220"
								colspan="4"/>

							<action
								string="Aged receivables"
								name="%(action_aged_receivable)d"
								height="220"
								colspan="4"/>

							<action
								string="Aged income"
								name="%(action_aged_income)d"
								height="220"
								colspan="4"/>

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

		<record model="ir.actions.act_window" id="open_board_account">
			<field name="name">Dashboard accountant</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_account_form"/>
		</record>

		<menuitem
			name="Dashboards/Accountant"
			action="open_board_account"
			sequence="1"
			id="menu_board_account"/>
	</data>
</terp>
