<?xml version="1.0" encoding="utf-8"?>
<terp>
    <data noupdate="1">
        
        <!--
	Case Sections
	-->
        
        <record id="section_support" model="crm.case.section">
            <field name="name">Helpdesk and Support</field>
            <field name="code">support</field>
        </record>
        <record id="section_sale" model="crm.case.section">
            <field name="name">Sales opportunities</field>
            <field name="code">sale</field>
        </record>
        <record id="section_purchase" model="crm.case.section">
            <field name="name">Supplier complaints</field>
            <field name="code">purchase</field>
        </record>
        
        <!--
	Case Categories
	-->
        
        <record id="categ1" model="crm.case.categ">
            <field name="name">Computer Crashed</field>
            <field name="section_id" ref="section_support"/>
        </record>
        <record id="categ2" model="crm.case.categ">
            <field name="name">Unknown</field>
            <field name="section_id" ref="section_support"/>
        </record>
        <record id="categ3" model="crm.case.categ">
            <field name="name">Bad Program Utilisation</field>
            <field name="section_id" ref="section_support"/>
        </record>
        <record id="categ4" model="crm.case.categ">
            <field name="name">Website Opportunity</field>
            <field name="section_id" ref="section_sale"/>
        </record>
        <record id="categ5" model="crm.case.categ">
            <field name="name">ERP Opportunity</field>
            <field name="section_id" ref="section_sale"/>
        </record>
        <record id="categ6" model="crm.case.categ">
            <field name="name">Furnitures</field>
            <field name="section_id" ref="section_purchase"/>
        </record>
        
        <!-- Specific menus -->
        
        <!--
	<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" eval="'[(\'section_id\',\'=\','+str(section_support)+')]'"/>
	</record>
	<menuitem name="CRM &amp; SRM/Helpdesk/Helpdesk Cases" id="menu_crm_case_categ2-act" action="crm_case_categ2-act"/>
	-->
        
        <function eval="([section_support], 'Helpdesk', ref('menu_crm'))" model="crm.case.section" name="menu_create"/>
        
        <!-- Demo Cases -->
        
        <record model="crm.case">
            <field name="name">Think about Tiny ERP</field>
            <field name="priority">3</field>
            <field name="description">Fabien think about a new EC website
                Send them a price.
            </field>
            <field name="section_id" ref="section_sale"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_asus"/>
            <field name="som" ref="base.som_normal"/>
            <field eval="30000" name="planned_revenue"/>
            <field eval="0.85" name="probability"/>
            <field eval="time.strftime('%Y-%m-01')" name="date"/>
            <field eval="time.strftime('%Y-%m-24')" name="date_deadline"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
        </record>
        
        <record id="case1" model="crm.case">
            <field name="name">Need a new eCommerce Website</field>
            <field name="priority">4</field>
            <field name="description">Fabien think about a new EC website
                Send them a price.
            </field>
            <field name="section_id" ref="section_sale"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_agrolait"/>
            <field name="som" ref="base.som_happy"/>
            <field eval="3000" name="planned_revenue"/>
            <field eval="0.85" name="probability"/>
            <field eval="time.strftime('%Y-%m-10')" name="date"/>
            <field eval="time.strftime('%Y-%m-20')" name="date_deadline"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case1')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case1')]" model="crm.case"/>
        </function>
        
        <record id="case2" model="crm.case">
            <field name="name">Hdd Crashed unexpectedly</field>
            <field name="priority">3</field>
            <field name="description">HDD Crashed
                Linux turned it readonly.
                The CPU Cooler is down.
            </field>
            <field name="section_id" ref="section_support"/>
            <field eval="categ1" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_sednacom"/>
            <field name="som" ref="base.som_unhappy"/>
            <field eval="time.strftime('%Y-%m-03')" name="date"/>
            <field eval="time.strftime('%Y-%m-10')" name="date_deadline"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
        </record>
        
        <record id="case3" model="crm.case">
            <field name="name">Need a new eCommerce Website</field>
            <field name="priority">3</field>
            <field name="description">Fabien think about a new EC website
                Send them a price.
            </field>
            <field name="section_id" ref="section_sale"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_thymbra"/>
            <field name="som" ref="base.som_very_happy"/>
            <field eval="2345" name="planned_revenue"/>
            <field eval="0.60" name="probability"/>
            <field eval="time.strftime('%Y-%m-18')" name="date"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case3')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case3')]" model="crm.case"/>
        </function>
        
        <record id="case4" model="crm.case">
            <field name="name">Need a new eCommerce Website</field>
            <field name="priority">3</field>
            <field name="description">Fabien think about a new EC website
                Send them a price.
            </field>
            <field name="section_id" ref="section_sale"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_desertic_hispafuentes"/>
            <field name="som" ref="base.som_happy"/>
            <field eval="1000" name="planned_revenue"/>
            <field eval="79" name="planned_cost"/>
            <field eval="0.30" name="probability"/>
            <field eval="time.strftime('%Y-%m-05')" name="date"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case4')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case4')]" model="crm.case"/>
        </function>
        
        <record id="case5" model="crm.case">
            <field name="name">Bug in program</field>
            <field name="priority">3</field>
            <field name="description">There is a bug in the program</field>
            <field name="section_id" ref="section_support"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_asus"/>
            <field name="som" ref="base.som_normal"/>
            <field eval="8000" name="planned_revenue"/>
            <field eval="0.30" name="probability"/>
            <field eval="time.strftime('%Y-%m-08')" name="date"/>
            <field eval="time.strftime('%Y-%m-28')" name="date_deadline"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','admin')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case5')]" model="crm.case"/>
        </function>
        
        <record id="case6" model="crm.case">
            <field name="name">Server is down</field>
            <field name="priority">3</field>
            <field name="description">The web server is down</field>
            <field name="section_id" ref="section_support"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_3"/>
            <field name="som" ref="base.som_normal"/>
            <field eval="4200" name="planned_revenue"/>
            <field eval="0.90" name="probability"/>
            <field eval="time.strftime('%Y-%m-03')" name="date"/>
            <field eval="time.strftime('%Y-%m-25')" name="date_deadline"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case6')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case6')]" model="crm.case"/>
        </function>
        <record id="case6" model="crm.case">
            <field name="description">Have been rebooted</field>
        </record>
        <function model="crm.case" name="case_pending">
            <value eval="[ref('case6')]" model="crm.case"/>
        </function>
        
        <record id="case7" model="crm.case">
            <field name="name">Disk failure</field>
            <field name="priority">2</field>
            <field name="description">The new disk doesn't work</field>
            <field name="section_id" ref="section_purchase"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_maxtor"/>
            <field name="som" ref="base.som_normal"/>
            <field eval="2000" name="planned_revenue"/>
            <field eval="0.30" name="probability"/>
            <field eval="time.strftime('%Y-%m-06')" name="date"/>
            <field eval="time.strftime('%Y-%m-18')" name="date_deadline"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','admin')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case7')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case7')]" model="crm.case"/>
        </function>
        
        <record id="case8" model="crm.case">
            <field name="name">Missing hardware</field>
            <field name="priority">3</field>
            <field name="description">Missing some hardwares in the packing</field>
            <field name="section_id" ref="section_support"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_seagate"/>
            <field name="som" ref="base.som_normal"/>
            <field eval="2230" name="planned_revenue"/>
            <field eval="0.80" name="probability"/>
            <field eval="time.strftime('%Y-%m-02')" name="date"/>
            <field eval="time.strftime('%Y-%m-14')" name="date_deadline"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case8')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case8')]" model="crm.case"/>
        </function>
        
        <record id="case9" model="crm.case">
            <field name="name">Need a new eCommerce Website</field>
            <field name="priority">4</field>
            <field name="description">Fabien think about a new EC website
                Send them a price.
            </field>
            <field name="section_id" ref="section_sale"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_9"/>
            <field name="som" ref="base.som_happy"/>
            <field eval="1000" name="planned_revenue"/>
            <field eval="0.40" name="probability"/>
            <field eval="time.strftime('%Y-%m-06')" name="date"/>
            <field eval="time.strftime('%Y-%m-24')" name="date_deadline"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','admin')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case9')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case9')]" model="crm.case"/>
        </function>
        
        <record id="case10" model="crm.case">
            <field name="name">Need a new module</field>
            <field name="priority">3</field>
            <field name="description">Need a new module</field>
            <field name="section_id" ref="section_sale"/>
            <field eval="categ5" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_11"/>
            <field name="som" ref="base.som_unhappy"/>
            <field eval="3100" name="planned_revenue"/>
            <field eval="790" name="planned_cost"/>
            <field eval="0.90" name="probability"/>
            <field eval="time.strftime('%Y-%m-02')" name="date"/>
            <field eval="time.strftime('%Y-%m-12')" name="date_deadline"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case10')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case10')]" model="crm.case"/>
        </function>
        <record id="case10" model="crm.case">
            <field name="description">Module delivries</field>
        </record>
        <function model="crm.case" name="case_close">
            <value eval="[ref('case10')]" model="crm.case"/>
        </function>
        
        <record id="case11" model="crm.case">
            <field name="name">Need support on module</field>
            <field name="priority">1</field>
            <field name="description">Need some information on module ...</field>
            <field name="section_id" ref="section_sale"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_10"/>
            <field name="som" ref="base.som_happy"/>
            <field eval="8000" name="planned_revenue"/>
            <field eval="1234" name="planned_cost"/>
            <field eval="0.50" name="probability"/>
            <field eval="time.strftime('%Y-%m-18')" name="date"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case11')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case11')]" model="crm.case"/>
        </function>
        
        <record id="case12" model="crm.case">
            <field name="name">Bad packing</field>
            <field name="priority">2</field>
            <field name="description">We receive bad package</field>
            <field name="section_id" ref="section_purchase"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_14"/>
            <field name="som" ref="base.som_happy"/>
            <field eval="800" name="planned_revenue"/>
            <field eval="0.90" name="probability"/>
            <field eval="time.strftime('%Y-%m-25')" name="date"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case12')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case12')]" model="crm.case"/>
        </function>
        
        <record id="case13" model="crm.case">
            <field name="name">Need quotation</field>
            <field name="priority">3</field>
            <field name="description">Need quotation for new development</field>
            <field name="section_id" ref="section_support"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_tinyatwork"/>
            <field name="som" ref="base.som_happy"/>
            <field eval="300" name="planned_revenue"/>
            <field eval="0.10" name="probability"/>
            <field eval="time.strftime('%Y-%m-26')" name="date"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','admin')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case13')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case13')]" model="crm.case"/>
        </function>
        <record id="case13" model="crm.case">
            <field name="description">Not interested</field>
        </record>
        <function model="crm.case" name="case_close">
            <value eval="[ref('case13')]" model="crm.case"/>
        </function>
        
        <record id="case14" model="crm.case">
            <field name="name">New server</field>
            <field name="priority">1</field>
            <field name="description">We need a new server</field>
            <field name="section_id" ref="section_sale"/>
            <field eval="categ5" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_4"/>
            <field name="som" ref="base.som_normal"/>
            <field eval="8000" name="planned_revenue"/>
            <field eval="0.90" name="probability"/>
            <field eval="time.strftime('%Y-%m-16')" name="date"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case14')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case14')]" model="crm.case"/>
        </function>
        
        <record id="case15" model="crm.case">
            <field name="name">Formation</field>
            <field name="priority">4</field>
            <field name="description">Provide a formation</field>
            <field name="section_id" ref="section_sale"/>
            <field eval="categ4" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_5"/>
            <field name="som" ref="base.som_normal"/>
            <field eval="1000" name="planned_revenue"/>
            <field eval="0.30" name="probability"/>
            <field eval="time.strftime('%Y-%m-17')" name="date"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','admin')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case15')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case15')]" model="crm.case"/>
        </function>
        <record id="case15" model="crm.case">
            <field name="description">Information sended</field>
        </record>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case15')]" model="crm.case"/>
        </function>
        
        <record id="case16" model="crm.case">
            <field name="name">Need new specific reports</field>
            <field name="priority">3</field>
            <field name="description">Need some specific reports</field>
            <field name="section_id" ref="section_support"/>
            <field eval="categ5" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_thymbra"/>
            <field name="som" ref="base.som_normal"/>
            <field eval="1300" name="planned_revenue"/>
            <field eval="79" name="planned_cost"/>
            <field eval="0.95" name="probability"/>
            <field eval="time.strftime('%Y-%m-13')" name="date"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case16')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case16')]" model="crm.case"/>
        </function>
        
        <record id="case17" model="crm.case">
            <field name="name">Server down</field>
            <field name="priority">3</field>
            <field name="description">Server is down, doesn't answser to pingz
                Should check if still running, and if network still up (need to be in front of the server)
                
                Very very very high priority, as I cannot svn up/ci/st without the server
                
                (btw : this is only demo data. no stress dear sysadmin :))
            </field>
            <field name="section_id" ref="section_support"/>
            <field eval="categ1" name="categ_id"/>
            <field name="partner_id" ref="base.res_partner_9"/>
            <field name="som" ref="base.som_normal"/>
            <field eval="0" name="planned_revenue"/>
            <field eval="0" name="planned_cost"/>
            <field eval="0" name="probability"/>
            <field eval="time.strftime('%Y-%m-19')" name="date"/>
            <field model="res.partner.canal" name="canal_id" search="[]"/>
            <field model="res.users" name="user_id" search="[('login','=','demo')]"/>
        </record>
        <function model="crm.case" name="case_open">
            <value eval="[ref('case17')]" model="crm.case"/>
        </function>
        <function model="crm.case" name="case_log">
            <value eval="[ref('case17')]" model="crm.case"/>
        </function>
        
    </data>
</terp>