<?xml version="1.0"?>
<terp>
<data>
	<!--
	======================
	Languages
	======================
	-->
	<record model="ir.ui.view" id="view_lang">
		<field name="name">Languages</field>
		<field name="model">res.lang</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Language">
				<field name="name" select="1"/>
				<field name="code" select="1"/>
				<field name="translatable"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="action_lang">
		<field name="name">res.lang</field>
		<field name="type">ir.actions.act_window</field>
		<field name="res_model">res.lang</field>
		<field name="view_type">form</field>
	</record>
	<menuitem name="Administration/Custom/Interface/Languages" action="action_lang"/>
	
	<ir_set>
		<field name="key" eval="'meta'"/>
		<field name="key2" eval="'lang'"/>
		<field name="models" eval="['res.users']"/>
		<field name="name">lang</field>
		<field name="value" eval="False"/>
		<field name="meta" eval="{'type':'selection', 'string':'Language', 'selection':[(False,'en')]}"/>
		<field name="replace" eval="True"/>
	</ir_set>

	<!--
	======================
	Groups
	======================
	-->
	<record model="ir.ui.view" id="view_groups_form">
		<field name="name">res.groups.form</field>
		<field name="model">res.groups</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Groups">
				<field name="name" colspan="3" select="1"/>
			</form>
		</field>
	</record>
	
	<!--
	======================
	Users
	======================
	-->
	<record model="ir.ui.view" id="view_users_form_simple_modif">
		<field name="name">res.users.form.modif</field>
		<field name="model">res.users</field>
		<field name="type">form</field>
		<field name="priority" eval="10"/>
		<field name="arch" type="xml">
			<form string="Users">
				<field name="name" colspan="3" select="1"/>
				<field name="login" readonly="1" select="1"/>
				<field name="password"/>
				<label string="Please note that you will have to logout and relog if you change your password." colspan="4"/>
				<newline/>
				<field name="signature" colspan="3"/>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_users_form_simple">
		<field name="name">res.users.form</field>
		<field name="model">res.users</field>
		<field name="type">form</field>
		<field name="priority" eval="8"/>
		<field name="arch" type="xml">
			<form string="Users">
				<field name="name" readonly="1" colspan="3" select="1"/>
				<field name="login" readonly="1" select="1"/>
				<newline/>
				<field name="signature" readonly="1" colspan="3"/>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_users_form">
		<field name="name">res.users.form</field>
		<field name="model">res.users</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Users">
				<field name="name" select="1"/>
				<field name="active" select="1"/>
				<field name="login" select="1"/>
				<field name="password"/>
				<field name="signature"/>
				<field name="address_id"/>
				<field name="company_id" required="1"/>
				<field name="action_id" domain="[('usage','=','menu')]" required="True"/>
				<newline/>
				<field name="groups_id"/>
				<field name="roles_id"/>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_users_tree">
		<field name="name">res.users.tree</field>
		<field name="model">res.users</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Users">
				<field name="name"/>
				<field name="login"/>
			</tree>
		</field>
	</record>

	<!--
	======================
	Company
	======================
	-->
	<record model="ir.ui.view" id="view_company_form">
		<field name="name">res.company.form</field>
		<field name="model">res.company</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Company">
				<field name="name" colspan="3" select="1"/>
				<field name="partner_id" select="1"/>
				<field name="parent_id" select="1"/>
				<field name="rml_header1"/>
				<field name="rml_footer1"/>
				<field name="rml_footer2"/>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="view_company_tree">
		<field name="name">res.company.tree</field>
		<field name="model">res.company</field>
		<field name="type">tree</field>
		<field name="field_parent">child_ids</field>
		<field name="arch" type="xml">
			<tree string="Companies">
				<field name="name"/>
				<field name="partner_id"/>
			</tree>
		</field>
	</record>

	# Admin config

	<menuitem name="Administration/Configuration/User" sequence="4"/>

	<record model="ir.actions.act_window" id="open_module_users_list">
		<field name="name">res.users.list</field>
		<field name="res_model">res.users</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="view_id" ref="base.view_users_tree"/>
	</record>
	<menuitem name="Administration/Configuration/User/Define Users" action="open_module_users_list" sequence="1" id="menu_users_list"/>

</data>
</terp>
