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

	<menuitem
		id="menu_processus"
		name="Enterprise Processus"
		parent="base.menu_custom"/>

	<!-- Views for Processus -->
	<record model="ir.ui.view" id="view_processus_form">
		<field name="name">processus.processus.form</field>
		<field name="model">processus.processus</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Processus">
				<notebook>
				<page string="Processus">
					<field name="name" select="1"/>
					<field name="active" select="2"/>
					<field name="note" colspan="4"/>
				</page><page string="Nodes">
					<field name="node_ids" colspan="4" nolabel="1"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="view_processus_tree">
		<field name="name">processus.processus.tree</field>
		<field name="model">processus.processus</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Processus">
				<field name="name"/>
				<field name="active"/>
			</tree>
		</field>
	</record>

	<record model="ir.actions.act_window" id="action_processus_form">
		<field name="name">Processus</field>
		<field name="res_model">processus.processus</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem
		id="menu_processus_form"
		action="action_processus_form"
		parent="menu_processus"/>

	<!-- Views for Processus Nodes -->

	<record model="ir.ui.view" id="view_processus_node_tree">
		<field name="name">processus.node.tree</field>
		<field name="model">processus.node</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Processus Node">
				<field name="name"/>
				<field name="processus_id"/>
				<field name="flow_start"/>
				<field name="kind"/>
				<field name="model_id"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="view_processus_node_form">
		<field name="name">processus.node.form</field>
		<field name="model">processus.node</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Processus Node">
				<notebook>
					<page string="Node Description">
						<field name="name" select="1"/>
						<newline/>
						<field name="processus_id" select="1"/>
						<field name="flow_start"/>
						<field name="kind" select="1"/>
						<field name="model_id" select="1"/>
						<field name="model_states"/>
						<newline/>
						<field name="menu_id" select="2"/>
						<separator string="Outgoing Transitions" colspan="4"/>
						<field name="transition_out" colspan="4" nolabel="1">
							<tree string="Outgoing Transitions">
								<field name="name"/>
								<field name="node_to_id"/>
							</tree>
							<form string="Outgoing Transitions">
								<notebook>
								<page name="Description">
									<field name="name"/>
									<newline/>
									<field name="node_from_id"/>
									<field name="node_to_id"/>
									<field name="note" colspan="4"/>
								</page><page string="Transitions">
									<field name="action_ids" colspan="4"/>
									<field name="transition_ids" colspan="4"/>
								</page>
								</notebook>
							</form>
						</field>
					</page>
					<page string="Extra Information">
						<field name="note" nolabel="1" colspan="4"/>
					</page>
				</notebook>
			</form>
		</field>
	</record>

	<record model="ir.actions.act_window" id="action_processus_node_form">
		<field name="name">Processus Node</field>
		<field name="res_model">processus.node</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem 
		action="action_processus_node_form" 
		parent="menu_processus" 
		id="menu_partner_address_form"/>


	<!-- Views for Partners -->
	<record model="ir.ui.view" id="view_transition_form">
		<field name="name">Processus Transitions</field>
		<field name="model">processus.transition</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Transitions">
				<notebook>
				<page name="Description">
					<field name="name"/>
					<newline/>
					<field name="node_from_id"/>
					<field name="node_to_id"/>
					<field name="note" colspan="4"/>
				</page><page string="Transitions">
					<field name="action_ids" colspan="4">
						<tree string="Actions">
							<field name="name"/>
							<field name="state"/>
							<field name="action"/>
						</tree>
						<form string="Actions">
							<field name="name"/>
							<newline/>
							<field name="state"/>
							<field name="action"/>
						</form>
					</field>
					<field name="transition_ids" colspan="4"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_transition_tree">
		<field name="name">Processus Transitions</field>
		<field name="model">processus.transition</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Transitions">
				<field name="name"/>
				<field name="node_from_id"/>
				<field name="node_to_id"/>
			</tree>
		</field>
	</record>

	<record model="ir.actions.act_window" id="action_transition_open">
		<field name="name">Processus Transitions</field>
		<field name="res_model">processus.transition</field>
		<field name="view_type">form</field>
	</record>
	<menuitem 
		action="action_transition_open"
		parent="menu_processus"
		id="menu_action_transition_open"/>

</data>
</terp>
