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

		<!--
			Process
		-->

		<record id="process_process_holidaysprocess0" model="process.process">
			<field eval="&quot;&quot;&quot;Holidays&quot;&quot;&quot;" name="name"/>
			<field name="model_id" ref="hr_holidays.model_hr_holidays"/>
			<field eval="1" name="active"/>
		</record>

		<!--
			Process Node
		-->

		<record id="process_node_holidaysdefinition0" model="process.node">
			<field name="menu_id" ref="hr_holidays.menu_open_ask_holidays_new"/>
			<field name="model_id" ref="hr_holidays.model_hr_holidays_per_user"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;Encoding of annual available holidays.&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;Holidays Definition&quot;&quot;&quot;" name="name"/>
			<field name="process_id" ref="process_process_holidaysprocess0"/>
			<field eval="1" name="flow_start"/>
		</record>

		<record id="process_node_holidaysrequest0" model="process.node">
			<field name="menu_id" ref="hr_holidays.menu_open_ask_holidays_new"/>
			<field name="model_id" ref="hr_holidays.model_hr_holidays"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;Employee fills in a request for holidays&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;Holidays Request&quot;&quot;&quot;" name="name"/>
			<field name="process_id" ref="process_process_holidaysprocess0"/>
			<field eval="&quot;&quot;&quot;object.state=='draft'&quot;&quot;&quot;" name="model_states"/>
			<field eval="0" name="flow_start"/>
		</record>

		<record id="process_node_refused0" model="process.node">
			<field name="menu_id" ref="hr_holidays.menu_open_ask_holidays_new"/>
			<field name="model_id" ref="hr_holidays.model_hr_holidays"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;His manager refuses the request&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;Refused&quot;&quot;&quot;" name="name"/>
			<field name="process_id" ref="process_process_holidaysprocess0"/>
			<field eval="&quot;&quot;&quot;object.state=='refuse'&quot;&quot;&quot;" name="model_states"/>
			<field eval="0" name="flow_start"/>
		</record>

		<record id="process_node_approved0" model="process.node">
			<field name="menu_id" ref="hr_holidays.menu_open_ask_holidays_new"/>
			<field name="model_id" ref="hr_holidays.model_hr_holidays"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;His manager approves the request&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;Approved&quot;&quot;&quot;" name="name"/>
			<field name="process_id" ref="process_process_holidaysprocess0"/>
			<field eval="&quot;&quot;&quot;object.state=='validate'&quot;&quot;&quot;" name="model_states"/>
			<field eval="0" name="flow_start"/>
		</record>

		<record id="process_node_calendar0" model="process.node">
			<field name="menu_id" ref="hr_holidays.menu_open_ask_holidays_new"/>
			<field name="model_id" ref="hr_holidays.model_hr_holidays"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;The holiday is set in the calendar&quot;&quot;&quot;" name="note"/>
			<field eval="&quot;&quot;&quot;Calendar&quot;&quot;&quot;" name="name"/>
			<field name="process_id" ref="process_process_holidaysprocess0"/>
			<field eval="&quot;&quot;&quot;object.state=='validate'&quot;&quot;&quot;" name="model_states"/>
			<field eval="0" name="flow_start"/>
		</record>

		<record id="process_node_holidays0" model="process.node">
			<field name="menu_id" ref="hr_holidays.menu_open_ask_holidays"/>
			<field name="model_id" ref="hr_holidays.model_hr_holidays"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;Holidays&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;Encode number of available holidays&quot;&quot;&quot;" name="note"/>
			<field name="process_id" ref="hr.process_process_employeecontractprocess0"/>
			<field eval="&quot;&quot;&quot;object.state in ('draft', 'validate', 'confirm', 'refuse', 'cancel')&quot;&quot;&quot;" name="model_states"/>
			<field eval="0" name="flow_start"/>
		</record>

		<record id="process_node_legaldeclaration0" model="process.node">
			<field name="menu_id" ref="hr_holidays.menu_open_ask_holidays"/>
			<field name="model_id" ref="hr_holidays.model_hr_holidays"/>
			<field eval="&quot;&quot;&quot;state&quot;&quot;&quot;" name="kind"/>
			<field eval="&quot;&quot;&quot;Secretariat Social&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;Legal Declaration Document to declare new employee&quot;&quot;&quot;" name="note"/>
			<field name="process_id" ref="hr.process_process_employeecontractprocess0"/>
			<field eval="0" name="flow_start"/>
		</record>

		<!--
			Process Transition
		-->


		<record id="process_transition_employeedeclaration0" model="process.transition">
			<field eval="[(6,0,[])]" name="transition_ids"/>
			<field eval="&quot;&quot;&quot;Employee Declaration&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;Document for employee&quot;&quot;&quot;" name="note"/>
			<field model="process.node" name="target_node_id" ref="process_node_legaldeclaration0"/>
			<field model="process.node" name="source_node_id" ref="hr.process_node_employee0"/>
		</record>

		<record id="process_transition_holidaysdefrequest0" model="process.transition">
			<field eval="[(6,0,[])]" name="transition_ids"/>
			<field eval="&quot;&quot;&quot;Holidays def Request&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;If holidays available, employee can take it and fill it.&quot;&quot;&quot;" name="note"/>
			<field model="process.node" name="target_node_id" ref="process_node_holidaysrequest0"/>
			<field model="process.node" name="source_node_id" ref="process_node_holidaysdefinition0"/>
		</record>

		<record id="process_transition_refusedrequest0" model="process.transition">
			<field eval="[(6,0,[])]" name="transition_ids"/>
			<field eval="&quot;&quot;&quot;Refused Request&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;Request is refused.&quot;&quot;&quot;" name="note"/>
			<field model="process.node" name="target_node_id" ref="process_node_refused0"/>
			<field model="process.node" name="source_node_id" ref="process_node_holidaysrequest0" />
		</record>

		<record id="process_transition_approvedrequest0" model="process.transition">
			<field eval="[(6,0,[])]" name="transition_ids"/>
			<field eval="&quot;&quot;&quot;Approved Request&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;Request is approved.&quot;&quot;&quot;" name="note"/>
			<field model="process.node" name="target_node_id" ref="process_node_approved0"/>
			<field model="process.node" name="source_node_id" ref="process_node_holidaysrequest0"/>
		</record>

		<record id="process_transition_setholiday0" model="process.transition">
			<field eval="[(6,0,[])]" name="transition_ids"/>
			<field eval="&quot;&quot;&quot;Set Holiday&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;Holiday is set in the calendar.&quot;&quot;&quot;" name="note"/>
			<field model="process.node" name="target_node_id" ref="process_node_calendar0"/>
			<field model="process.node" name="source_node_id" ref="process_node_approved0"/>
		</record>

		<record id="process_transition_employeeholidays0" model="process.transition">
			<field eval="[(6,0,[])]" name="transition_ids"/>
			<field eval="&quot;&quot;&quot;Employee Holidays&quot;&quot;&quot;" name="name"/>
			<field eval="&quot;&quot;&quot;Employee get holidays&quot;&quot;&quot;" name="note"/>
			<field model="process.node" name="target_node_id" ref="process_node_holidays0"/>
			<field model="process.node" name="source_node_id" ref="process_node_legaldeclaration0"/>
		</record>

		<!--
			Process Transition Action
		-->

		<record id="process_transition_action_confirm0" model="process.transition.action">
			<field eval="&quot;&quot;&quot;holidays_confirm&quot;&quot;&quot;" name="action"/>
			<field eval="&quot;&quot;&quot;object&quot;&quot;&quot;" name="state"/>
			<field eval="&quot;&quot;&quot;Confirm&quot;&quot;&quot;" name="name"/>
			<field name="transition_id" ref="process_transition_holidaysdefrequest0"/>
		</record>

		<record id="process_transition_action_reufse0" model="process.transition.action">
			<field eval="&quot;&quot;&quot;holidays_refuse&quot;&quot;&quot;" name="action"/>
			<field eval="&quot;&quot;&quot;object&quot;&quot;&quot;" name="state"/>
			<field eval="&quot;&quot;&quot;Refuse&quot;&quot;&quot;" name="name"/>
			<field name="transition_id" ref="process_transition_refusedrequest0"/>
		</record>

		<record id="process_transition_action_validate0" model="process.transition.action">
			<field eval="&quot;&quot;&quot;holidays_validate&quot;&quot;&quot;" name="action"/>
			<field eval="&quot;&quot;&quot;object&quot;&quot;&quot;" name="state"/>
			<field eval="&quot;&quot;&quot;Validate&quot;&quot;&quot;" name="name"/>
			<field name="transition_id" ref="process_transition_approvedrequest0"/>
		</record>

	</data>
</openerp>