<terp>
<data>

 	<menuitem name="Human Resources/Configuration/Skills Management" groups="admin"/> 

<!-- defini le formulaire skill -->
	<record model="ir.ui.view" id="view_skill_form">
		<field name="name">hr_skill.skill.form</field>
		<field name="model">hr_skill.skill</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Skills">
				<field name="name" select="1" colspan="1"/>
				<field name="active" select="1" />
				<newline/>
				<field name="parent_id" select="1"/>
				<field name="weight_category_id" select="1"/>
				<field name="view" select="1"/>
			</form>
		</field>
	</record>
<!-- defini une action pr skill ds le menu principal -->
	<record model="ir.actions.act_window" id="open_view_skill_form">
		<field name="name">hr_skill.skill</field>
		<field name="res_model">hr_skill.skill</field>
		<field name="view_type">form</field> 
		<field name="view_mode">form,tree</field>
	</record>
<!-- defini l'entree skill ds le menu principal -->
	<menuitem name="Human Resources/Configuration/Skills Management/Skills" id="menu_open_view_skill_form" action="open_view_skill_form"/>



<!-- defini la vue en arbre des skills-->
	<record model="ir.ui.view" id="view_hr_skill_tree">
		<field name="name">hr_skill.skill.tree</field>
		<field name="model">hr_skill.skill</field>
		<field name="type">tree</field>
		<field name="field_parent">child_ids</field>
		<field name="arch" type="xml">
			<tree string="Skills">
				<field name="name"/>
				<field name="view"/>
			</tree>
		</field>
	</record>
<!-- associe la vue en arbre des skills au bouton correspondant ds le menu principal -->
	<record model="ir.actions.act_window" id="open_view_skill_tree">
		<field name="name">hr_skill.skill.tree</field>
		<field name="res_model">hr_skill.skill</field>
		<field name="view_type">tree</field>
		<field name="view_id" ref="view_hr_skill_tree"/>
		<field name="domain">[('parent_id','=',False)]</field>
	</record>
<!-- ajoute une entree "skill tree" dans le menu principal -->
	<menuitem name="Human Resources/Configuration/Skills Management/Skills Tree" id="menu_open_view_skill_tree" action="open_view_skill_tree"/>




<!-- defini le formulaire position -->
	<record model="ir.ui.view" id="view_position_form">
		<field name="name">hr_skill.position.form</field>
		<field name="model">hr_skill.position</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Positions">
				<field name="name" select="1" colspan="3"/>
				<field name="profile_ids" colspan="3"> 
					<tree string="Profiles" editable="top">
						<field name="profile_id" on_change="onchange_profile_id(profile_id)"/>
						<field name="weight_id"/>
						<field name="name"/>
					</tree>
				</field>
			</form>
		</field>
	</record>
<!-- defini une action pr position ds le menu principal -->
	<record model="ir.actions.act_window" id="open_view_position_form">
		<field name="name">hr_skill.position</field>
		<field name="res_model">hr_skill.position</field>
		<field name="view_type">form</field> 
		<field name="view_mode">form,tree</field>
	</record>
<!-- defini l'entree position ds le menu principal -->
	<menuitem name="Human Resources/Configuration/Skills Management/Positions" id="menu_open_view_position_form" action="open_view_position_form"/>



<!-- defini le formulaire profile -->
	<record model="ir.ui.view" id="view_profile_form">
		<field name="name">hr_skill.profile.form</field>
		<field name="model">hr_skill.profile</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Profile">
				<field name="name" select="1" colspan="3"/>
				<field name="skill_ids" colspan="3"> 
					<tree string="Skills" editable="top">
						<field name="skill_id" on_change="onchange_skill_id(skill_id)"/>
						<field name="weight_id"/>
						<field name="name"/>
					</tree>
					<form string="Skills" editable="top">
						<field name="skill_id" on_change="onchange_skill_id(skill_id)"/>
						<field name="weight_id"/>
						<field name="name"/>
					</form>

				</field>
			</form>
		</field>

	</record>
<!-- defini une action pr profile ds le menu principal -->
	<record model="ir.actions.act_window" id="open_view_profile_form">
		<field name="name">hr_skill.profile</field>
		<field name="res_model">hr_skill.profile</field>
		<field name="view_type">form</field> 
		<field name="view_mode">form,tree</field>
	</record>
<!-- defini l'entree profiles ds le menu principal -->
	<menuitem name="Human Resources/Configuration/Skills Management/Profiles" id="menu_open_view_profiles_form" action="open_view_profile_form"/>



<!-- defini le formulaire weight categories -->
	<record model="ir.ui.view" id="view_weight_category_form">
		<field name="name">hr_skill.weight.category.form</field>
		<field name="model">hr_skill.weight.category</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Weight Categories">
				<field name="name" select="1" colspan="2"/>
			</form>
		</field>
	</record>
<!-- defini une action pr weight categories ds le menu principal -->
	<record model="ir.actions.act_window" id="open_view_weight_category_form">
		<field name="name">hr_skill.weight.category</field>
		<field name="res_model">hr_skill.weight.category</field>
		<field name="view_type">form</field> 
		<field name="view_mode">form,tree</field>
	</record>
<!-- defini l'entree weight categories ds le menu principal -->
	<menuitem name="Human Resources/Configuration/Skills Management/Weight Categories" id="menu_open_view_weight_category_form" action="open_view_weight_category_form"/>


<!-- defini le formulaire weight -->
	<record model="ir.ui.view" id="view_weight_form">
		<field name="name">hr_skill.weight.form</field>
		<field name="model">hr_skill.weight</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Weight">
				<field name="name" select="1"/>
				<newline/>
				<field name="value" select="1"/>
				<field name="category_id" select="1"/>
			</form>
		</field>

	</record>
<!-- defini une action pr weight categories ds le menu principal -->
	<record model="ir.actions.act_window" id="open_view_weight_form">
		<field name="name">hr_skill.weight</field>
		<field name="res_model">hr_skill.weight</field>
		<field name="view_type">form</field> 
		<field name="view_mode">form,tree</field>
	</record>
<!-- defini l'entree weight categories ds le menu principal -->
	<menuitem name="Human Resources/Configuration/Skills Management/Weights" id="menu_open_view_weight_form" action="open_view_weight_form"/>







<!-- defini le formulaire experience categories -->
	<record model="ir.ui.view" id="view_experience_category_form">
		<field name="name">hr_skill.experience.category.form</field>
		<field name="model">hr_skill.experience.category</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Experience Categories">
				<field name="name" select="1" colspan="2"/>
			</form>
		</field>
	</record>
<!-- defini une action pr experience categories ds le menu principal -->
	<record model="ir.actions.act_window" id="open_view_experience_category_form">
		<field name="name">hr_skill.experience.category</field>
		<field name="res_model">hr_skill.experience.category</field>
		<field name="view_type">form</field> 
		<field name="view_mode">form,tree</field>
	</record>
<!-- defini l'entree experience categories ds le menu principal -->
	<menuitem name="Human Resources/Configuration/Skills Management/Experience Categories" id="menu_open_view_experience_category_form" action="open_view_experience_category_form"/>




<!-- defini le formulaire experience -->
	<record model="ir.ui.view" id="view_experience_form">
		<field name="name">hr_skill.experience.form</field>
		<field name="model">hr_skill.experience</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Experiences">
				<field name="name" select="1" />
				<field name="category_id" select="1" />
				<field name="skill_ids" colspan="3"> 
					<tree string="Skills" editable="top">
					        <field name="skill_id" on_change="onchange_skill_id(skill_id)"/>
						<field name="weight_id"/>
						<field name="name"/>
					</tree>
					<form string="Skills" editable="top">
					        <field name="skill_id" on_change="onchange_skill_id(skill_id)"/>
						<field name="weight_id"/>
						<field name="name"/>
					</form>

				</field>
			</form>
		</field>
	</record>
<!-- defini une action pr position ds le menu principal -->
	<record model="ir.actions.act_window" id="open_view_experience_form">
		<field name="name">hr_skill.experience</field>
		<field name="res_model">hr_skill.experience</field>
		<field name="view_type">form</field> 
		<field name="view_mode">form,tree</field>
	</record>
<!-- defini l'entree position ds le menu principal -->
	<menuitem name="Human Resources/Configuration/Skills Management/Experiences" id="menu_open_view_experience_form" action="open_view_experience_form"/>




<!-- formulaire evaluation -->
		<record model="ir.ui.view" id="view_evalutation_form">
			<field name="name">hr_skill.evaluation.form</field>
			<field name="model">hr_skill.evaluation</field>
			<field name="type">form</field>
			<field name="arch" type="xml">

			     <form string="Evaluation">
			 <notebook>
			   <page string="General Informations">

					<field name="name" select="1"/>
					<field name="date" select="1"/>
					<field name="interviewee_name" select="1"/>
					<field name="interviewer_name" select="1"/>
					<field name="employee_id" on_change="onchange_employee_id(employee_id)"/>
					<field name="reference" />
					<field name="category_id" />
					<field name="note" colspan="3"/>


			   </page>
			   <page string="Skill and experiences">
					<field name="experience_ids" colspan="3" nolanel="1">
					  <tree string="Experiences"
					editable="top" nolabel="1" >
						 <field name="experience_id" on_change="onchange_experience_id(experience_id)"/>
						 <field name="weight_id"/>
						 <field name="name"/>
					  </tree>
					</field>
					<field name="skill_ids" colspan="3" nolanel="1">
					  <tree string="Skills"
						 editable="top" nolabel="1" >
						 <field name="skill_id" on_change="onchange_skill_id(skill_id)"/>
						 <field name="weight_id"/>
						 <field name="name"/>
					  </tree>
					</field>

			   </page>
		         </notebook>
			     </form>
			</field>
		</record>



<!-- arbre  evaluation -->
		<record model="ir.ui.view" id="view_evalutation_tree">
			<field name="name">hr_skill.evaluation.tree</field>
			<field name="model">hr_skill.evaluation</field>
			<field name="type">tree</field>
			<field name="arch" type="xml">
			     <tree string="Evaluation">
					<field name="name" select="1"/>
					<field name="date" select="1"/>
					<field name="interviewee_name" select="1"/>
					<field name="interviewer_name" select="1"/>
					<field name="category_id" />
			     </tree>
			</field>
		</record>



<!-- defini une action pr evaluation ds le menu principal -->
	<record model="ir.actions.act_window" id="open_view_evaluation_form">
		<field name="name">hr_skill.evaluation</field>
		<field name="res_model">hr_skill.evaluation</field>
		<field name="view_type">form</field> 
		<field name="view_mode">form,tree</field>
	</record>
<!-- defini l'entree evaluations ds le menu principal -->
	<menuitem name="Human Resources/Configuration/Skills Management/Evaluations" id="menu_open_view_evaluation_form" action="open_view_evaluation_form"/>





</data>
</terp>





<!-- complete le formulaire employee -->
<!-- 		<record model="ir.ui.view" id="view_hr_employe"> -->
<!-- 			<field name="name">hr_skill.employee.inherit.form</field> -->
<!-- 			<field name="model">hr.employee</field> -->
<!-- 			<field name="inherit_id" ref="hr.view_employee_form" /> -->
<!-- 			<field name="type">form</field> -->
<!-- 			<field name="priority" eval="64"/> -->
<!-- 			<field name="arch" type="xml"> -->
<!-- 				<page string="Holidays" position="after"> -->
<!-- 					<page string="Skills"> -->
<!-- 						<field -->
<!-- 		name="experience_ids"> -->
<!-- 							<form string="Employee experience">  -->
<!-- 									<field name="name"/> -->
<!-- 									<field name="experience_id" on_change="onchange_experience_id(experience_id)"/> -->
<!-- 									<field name="weight_id" /> -->
<!-- 							</form> -->
<!-- 							<tree string="Employee experience" editable="top">  -->
<!-- 									<field name="name"  /> -->
<!-- 									<field name="experience_id" on_change="onchange_experience_id(experience_id)"/> -->
<!-- 									<field name="weight_id" /> -->
<!-- 							</tree> -->


<!-- 			</field> -->
<!-- 						<field name="skill_ids" /> -->
<!-- 					</page> -->
<!-- 				</page> -->
<!-- 			</field> -->
<!-- 		</record> -->
