<?xml version="1.0"?>
<terp>
<data>
	<record model="ir.ui.view" id="res_partner_events-wopartner-view">
		<field name="name">res.partner.events.form</field>
		<field name="model">res.partner.events</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Partner Events">
				<separator string="General Description"/>
				<field name="date" select="1"/>
				<field name="name" select="1"/>
				<field name="som" select="1"/>
				<field name="type" select="1"/>
				<field name="partner_type" select="1"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="crm_case_categ-view">
		<field name="name">crm.case.categ.form</field>
		<field name="model">crm.case.categ</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Case Category">
				<field name="name" select="1"/>
				<field name="case_type" select="1"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="crm_case_categ-act">
		<field name="name">crm.case.categ.form</field>
		<field name="res_model">crm.case.categ</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="crm_case_categ-view"/>
	</record>
	<menuitem name="CRM &amp; SRM/Definitions/Case Categories" id="menu_crm_case_categ-act" action="crm_case_categ-act" groups="admin"/>

	<record model="ir.ui.view" id="crm_case_history_tree-view">
		<field name="name">crm.case.history.tree</field>
		<field name="model">crm.case.history</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Case History">
				<field name="date"/>
				<field name="name"/>
				<field name="som"/>
				<field name="user_id"/>
				<field name="canal_id"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="crm_case_tree-view">
		<field name="name">crm.case.tree</field>
		<field name="model">crm.case</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Cases">
				<field name="id"/>
				<field name="date"/>
				<field name="name"/>
				<field name="partner_id"/>
				<field name="user_id"/>
				<field name="priority"/>
				<field name="planned_revenue"/>
				<field name="planned_cost"/>
				<field name="state"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="crm_case-view">
		<field name="name">crm.case.form</field>
		<field name="model">crm.case</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Cases">
				<notebook>
				<page string="General Information">
					<separator string="General Description" colspan="4"/>
					<field name="name" select="1"/>
					<field name="id" select="1"/>
					<field name="date" select="1"/>
					<field name="priority"/>
					<field name="partner_id" select="1"/>
					<field name="partner_address_id" select="1"/>
					<field name="type"/>
					<field name="categ_id" select="1"/>
					<field name="planned_revenue"/>
					<field name="planned_cost"/>
					<field name="probability"/>
					<field name="user_id" select="1"/>
					<field name="ref" colspan="3"/>
					<field name="ref2" colspan="3"/>
					<separator string="Next Action" colspan="4"/>
					<field name="description" colspan="3" select="1"/>
					<field name="som" select="1"/>
					<field name="canal_id"/>
					<field name="date_deadline"/>
					<button name="case_log" string="Process Action" states="open" type="object"/>
					<field name="state" select="1"/>
					<group col="4" colspan="2">
						<button name="case_close" string="Close Case" states="open" type="object"/>
						<button name="case_open" string="Open" states="draft" type="object"/>
						<button name="case_reset" string="Reset to Draft" states="done" type="object"/>
						<button name="case_requeue" string="Requeue Case" states="open,done" type="object"/>
					</group>
				</page><page string="History">
					<field name="date_closed"/>
					<field name="active" select="1"/>
					<field name="history_line" nolabel="1" colspan="4" widget="one2many_list">
						<form string="Actions">
							<separator string="Action Information" colspan="4"/>
							<field name="name" colspan="3"/>
							<field name="date" select="1"/>
							<field name="user_id" select="1"/>
							<field name="description" colspan="3"/>
							<field name="som" select="1"/>
							<field name="canal_id"/>
						</form>
					</field>
				</page>
				</notebook>
			</form>
		</field>
	</record>

	<record model="ir.actions.act_window" id="crm_case_categ2-act">
		<field name="name">crm.case.form</field>
		<field name="res_model">crm.case</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="crm_case-view"/>
		<field name="domain">[('type','=','support')]</field>
	</record>
	<menuitem name="CRM &amp; SRM/Helpdesk/Helpdesk Cases" id="menu_crm_case_categ2-act" action="crm_case_categ2-act"/>
	<record model="ir.actions.act_window" id="crm_case_categ3-act">
		<field name="name">crm.case.form</field>
		<field name="res_model">crm.case</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('type','=','support'),('state','=','draft')]</field>
	</record>
	<menuitem name="CRM &amp; SRM/Helpdesk/Helpdesk Cases/Unassigned Cases" id="menu_crm_case_categ3-act" action="crm_case_categ3-act"/>
	<record model="ir.actions.act_window" id="crm_case_categ4-act">
		<field name="name">crm.case.form</field>
		<field name="res_model">crm.case</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('type','=','support'),('user_id','=',uid),('state','&lt;&gt;','done'),('state','&lt;&gt;','cancel')]</field>
	</record>
	<menuitem name="CRM &amp; SRM/Helpdesk/Helpdesk Cases/My Open Cases" id="menu_crm_case_categ4-act" action="crm_case_categ4-act"/>


	<record model="ir.ui.view" id="crm_case_history-view">
		<field name="name">crm.case.history.form</field>
		<field name="model">crm.case.history</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Cases">
				<separator string="Case Description" colspan="4"/>
				<field name="name" colspan="3" select="1"/>
				<field name="date" select="1"/>
				<field name="user_id" select="1"/>
				<field name="case_id" select="1"/>
				<field name="description" colspan="3" select="1"/>
				<field name="som" select="1"/>
				<field name="canal_id" select="1"/>
			</form>
		</field>
	</record>
	<record model="ir.actions.act_window" id="crm_case_history-act">
		<field name="name">crm.case.history.form</field>
		<field name="res_model">crm.case.history</field>
		<field name="view_type">form</field>
		<field name="view_mode">form,tree</field>
		<field name="view_id" ref="crm_case_history-view"/>
	</record>
	<menuitem name="CRM &amp; SRM/Actions" id="menu_crm_case_history-act_main" groups="admin"/>
	<menuitem name="CRM &amp; SRM/Actions/All Actions" id="menu_crm_case_history-act" action="crm_case_history-act" groups="admin"/>
	<record model="ir.actions.act_window" id="crm_case_history_my-act">
		<field name="name">crm.case.history.form</field>
		<field name="res_model">crm.case.history</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="view_id" ref="crm_case_history-view"/>
		<field name="domain">[('user_id','=',uid)]</field>
	</record>
	<menuitem name="CRM &amp; SRM/Actions/All Actions/My Actions" id="menu_crm_case_history_my-act" action="crm_case_history_my-act" groups="admin"/>



	<record model="ir.actions.act_window" id="crm_case_categ5-act">
		<field name="name">crm.case.form</field>
		<field name="res_model">crm.case</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="crm_case-view"/>
		<field name="domain">[('type','=','sale')]</field>
	</record>
	<menuitem name="Sales Management/Business Opportunities" id="menu_crm_case_categ5-act" action="crm_case_categ5-act"/>
	<record model="ir.actions.act_window" id="crm_case_categ6-act">
		<field name="name">crm.case.form</field>
		<field name="res_model">crm.case</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('type','=','sale'),('state','=','draft')]</field>
	</record>
	<menuitem name="Sales Management/Business Opportunities/Unassigned Business Opportunities" id="menu_crm_case_categ6-act" action="crm_case_categ6-act"/>
	<record model="ir.actions.act_window" id="crm_case_categ7-act">
		<field name="name">crm.case.form</field>
		<field name="res_model">crm.case</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('type','=','sale'),('user_id','=',uid),('state','&lt;&gt;','done'),('state','&lt;&gt;','cancel')]</field>
	</record>
	<menuitem name="Sales Management/Business Opportunities/My Business Opportunities" id="menu_crm_case_categ7-act" action="crm_case_categ7-act"/>

	<record model="ir.actions.act_window" id="crm_case_categ8-act">
		<field name="name">crm.case.form</field>
		<field name="res_model">crm.case</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="crm_case-view"/>
		<field name="domain">[('type','=','purchase')]</field>
	</record>
	<menuitem name="Purchase Management/Supplier Request" id="menu_crm_case_categ8-act" action="crm_case_categ8-act"/>
	<record model="ir.actions.act_window" id="crm_case_categ9-act">
		<field name="name">crm.case.form</field>
		<field name="res_model">crm.case</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('type','=','purchase'),('state','=','draft')]</field>
	</record>
	<menuitem name="Purchase Management/Supplier Request/Unassigned Supplier Requests" id="menu_crm_case_categ9-act" action="crm_case_categ9-act"/>
	<record model="ir.actions.act_window" id="crm_case_categ10-act">
		<field name="name">crm.case.form</field>
		<field name="res_model">crm.case</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
		<field name="domain">[('type','=','purchase'),('user_id','=',uid),('state','&lt;&gt;','done'),('state','&lt;&gt;','cancel')]</field>
	</record>
	<menuitem name="Purchase Management/Supplier Request/My Supplier Requests" id="menu_crm_case_categ10-act" action="crm_case_categ10-act"/>

	<record model="ir.ui.view" id="crm_segmentation_line_tree-view">
		<field name="name">crm.segmentation.line.tree</field>
		<field name="model">crm.segmentation.line</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Partner Segmentation Lines">
				<field name="name"/>
				<field name="expr_name"/>
				<field name="expr_operator"/>
				<field name="expr_value"/>
				<field name="operator"/>
			</tree>
		</field>
	</record>

	<record model="ir.ui.view" id="crm_segmentation_line-view">
		<field name="name">crm.segmentation.line.form</field>
		<field name="model">crm.segmentation.line</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Partner Segmentation Lines">
				<field name="name" select="1" colspan="4"/>
				<group colspan="4" col="2">
					<field name="expr_name" select="1"/>
					<field name="expr_operator" select="1"/>
					<field name="expr_value" select="1"/>
				</group>
				<newline/>
				<field name="operator"/>
			</form>
		</field>
	</record>

	<record model="ir.ui.view" id="crm_segmentation-view">
		<field name="name">crm.segmentation.form</field>
		<field name="model">crm.segmentation</field>
		<field name="type">form</field>
		<field name="arch" type="xml">
			<form string="Partner Segmentation">
				<notebook>
				<page string="Segmentation Parameters">
					<separator string="Segmentation Description" colspan="4"/>
					<field name="name" select="1"/>
					<field name="exclusif"/>
					<field name="description" select="1" colspan="3"/>
					<field name="categ_id" select="1" colspan="3"/>
					<separator string="Segmentation Test" colspan="4"/>
					<field name="segmentation_line" widget="one2many_list" colspan="3"/>
					<field name="state"/>
					<group col="3" colspan="2">
						<button name="process_start" states="not running" string="Compute Segmentation" type="object"/>
						<button name="process_stop" states="running" string="Stop Process" type="object"/>
						<button name="process_continue" states="running" string="Continue Process" type="object"/>
					</group>
				</page><page string="Computation Parameters">
					<separator string="State of Mind Computation" colspan="4"/>
					<field name="som_interval"/>
					<field name="som_interval_max"/>
					<field name="som_interval_decrease"/>
					<field name="som_interval_default"/>
				</page>
				</notebook>
			</form>
		</field>
	</record>
	<record model="ir.ui.view" id="crm_segmentation_tree-view">
		<field name="name">crm.segmentation.tree</field>
		<field name="model">crm.segmentation</field>
		<field name="type">tree</field>
		<field name="arch" type="xml">
			<tree string="Partner Segmentations">
				<field name="name"/>
				<field name="description"/>
				<field name="categ_id"/>
			</tree>
		</field>
	</record>

	<record model="ir.actions.act_window" id="crm_segmentation-act">
		<field name="name">crm.segmentation.form</field>
		<field name="res_model">crm.segmentation</field>
		<field name="view_type">form</field>
		<field name="view_id" ref="crm_segmentation-view"/>
	</record>

	<record model="ir.actions.act_window" id="crm_segmentation_tree-act">
		<field name="name">crm.segmentation.tree</field>
		<field name="res_model">crm.segmentation</field>
		<field name="view_type">form</field>
		<field name="view_mode">tree,form</field>
	</record>
	<menuitem name="CRM &amp; SRM/Definitions" groups="admin"/>
	<menuitem name="CRM &amp; SRM/Definitions/Segmentations rules" id="menu_crm_segmentation-act" action="crm_segmentation-act"/>
	<menuitem name="CRM &amp; SRM/Automatic Segmentations" id="menu_crm_segmentation_tree-act" action="crm_segmentation_tree-act"/>


</data>
</terp>
