<terp>
<data>

<!-- 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="3"/>
				<field name="parent_id" select="1"/>
				<field name="view" select="1"/>
				<field name="child_ids" colspan="3"/>
			</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" 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 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="name"/>
						<field name="weight_id"/>
						<field name="profile_id" on_change="onchange_profile_id(profile_id)"/>
					</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/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="view_mode">form,tree</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="name"/>
						<field name="weight_id"/>
						<field name="skill_id" on_change="onchange_skill_id(skill_id)"/>
					</tree>
				</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/Profiles"
		id="menu_open_view_profiles_form"
		action="open_view_profile_form"/>



<!-- defini le formulaire weight -->
	<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="view_mode">form,tree</field>
	</record>
<!-- defini une action pr profile 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 profiles ds le menu principal -->
	<menuitem
		name="Human Resources/Configuration/Weight Wategories"
		id="menu_open_view_weight_category_form"
		action="open_view_weight_category_form"/>






</data>
</terp>
