[IMP]: Create category2 object for all cases
authorsbh (Open ERP) <sbh@tinyerp.com>
Wed, 13 Jan 2010 04:31:09 +0000 (10:01 +0530)
committersbh (Open ERP) <sbh@tinyerp.com>
Wed, 13 Jan 2010 04:31:09 +0000 (10:01 +0530)
bzr revid: sbh@tinyerp.com-20100113043109-49cyut2k5r73kjom

addons/crm/crm_fund_data.xml
addons/crm/crm_fundraising.py
addons/crm/crm_helpdesk.py
addons/crm/crm_lead.py
addons/crm/crm_lead_data.xml
addons/crm/crm_opportunity.py
addons/crm/crm_opportunity_data.xml
addons/crm/crm_phonecall.py

index 127a729..d5149f5 100644 (file)
 
         <!--    CASE CATEGORY2(category2_id)        -->
         
-    <record model="crm.case.category2" id="categ2_fund1">
+    <record model="crm.fundraising.type" id="categ2_fund1">
         <field name="name">Cash</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
     
-    <record model="crm.case.category2" id="categ2_fund2">
+    <record model="crm.fundraising.type" id="categ2_fund2">
         <field name="name">Cheque</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>        
 
-    <record model="crm.case.category2" id="categ2_fund3">
+    <record model="crm.fundraising.type" id="categ2_fund3">
         <field name="name">Credit Card</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
index 626d349..290620d 100644 (file)
@@ -59,6 +59,17 @@ class crm_fundraising_categ(osv.osv):
     }
 crm_fundraising_categ()
 
+class crm_fundraising_type(osv.osv):
+    _name = "crm.fundraising.type"
+    _description = "Fundraising Type"
+    _rec_name = "name"
+    _columns = {
+        'name': fields.char('Fundraising Type Name', size=64, required=True, translate=True),
+        'section_id': fields.many2one('crm.case.section', 'Case Section'),
+    }
+
+crm_fundraising_type()
+
 class crm_fundraising(osv.osv):
     _name = "crm.fundraising"
     _description = "Fund Raising Cases"
index 8bb62c1..03e1108 100644 (file)
@@ -59,6 +59,15 @@ class crm_helpdesk_categ(osv.osv):
     }
 crm_helpdesk_categ()
 
+class crm_helpdesk_type(osv.osv):
+    _name = "crm.helpdesk.type"
+    _description = "Helpdesk Type"
+    _rec_name = "name"
+    _columns = {
+        'name': fields.char('Helpdesk Type Name', size=64, required=True, translate=True),
+        'section_id': fields.many2one('crm.case.section', 'Case Section'),
+    }
+crm_helpdesk_type()
 class crm_helpdesk(osv.osv):
     _name = "crm.helpdesk"
     _description = "Helpdesk Cases"
index a7acc3c..bb3ed62 100644 (file)
@@ -58,6 +58,17 @@ class crm_lead_categ(osv.osv):
         'probability': lambda *args: 0.0
     }
 crm_lead_categ()
+
+class crm_lead_type(osv.osv):
+    _name = "crm.lead.type"
+    _description = "Lead Type"
+    _rec_name = "name"
+    _columns = {
+        'name': fields.char('lead Type Name', size=64, required=True, translate=True),
+        'section_id': fields.many2one('crm.case.section', 'Case Section'),
+    }
+crm_lead_type()
+
 class crm_opportunity(osv.osv):
     _name = "crm.opportunity"
 crm_opportunity()
index 619c549..6ceb41b 100644 (file)
     </record>
 
 <!--        CASE CATEGORY2(category2_id)        -->
-    <record model="crm.case.category2" id="category_lead1">
+    <record model="crm.lead.type" id="category_lead1">
         <field name="name">Telesales</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
-    <record model="crm.case.category2" id="category_lead2">
+    <record model="crm.lead.type" id="category_lead2">
         <field name="name">Mail</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
-    <record model="crm.case.category2" id="category_lead3">
+    <record model="crm.lead.type" id="category_lead3">
         <field name="name">Email</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
-    <record model="crm.case.category2" id="category_lead4">
+    <record model="crm.lead.type" id="category_lead4">
         <field name="name">Print</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
-    <record model="crm.case.category2" id="category_lead5">
+    <record model="ccrm.lead.type" id="category_lead5">
         <field name="name">Web</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
-    <record model="crm.case.category2" id="category_lead6">
+    <record model="crm.lead.type" id="category_lead6">
         <field name="name">Radio</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
-    <record model="crm.case.category2" id="category_lead7">
+    <record model="ccrm.lead.type" id="category_lead7">
         <field name="name">Television</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
-    <record model="crm.case.category2" id="category_lead8">
+    <record model="crm.lead.type" id="category_lead8">
         <field name="name">Newsletter</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
index fb81d93..861b59a 100644 (file)
@@ -59,6 +59,16 @@ class crm_opportunity_categ(osv.osv):
     }
 crm_opportunity_categ()
 
+class crm_opportunity_type(osv.osv):
+    _name = "crm.opportunity.type"
+    _description = "Opportunity Type"
+    _rec_name = "name"
+    _columns = {
+        'name': fields.char('lead Type Name', size=64, required=True, translate=True),
+        'section_id': fields.many2one('crm.case.section', 'Case Section'),
+    }
+crm_opportunity_type()
+
 class crm_opportunity(osv.osv):
     _name = "crm.opportunity"
     _description = "Opportunity Cases"
index 9c9ab51..062d033 100644 (file)
     </record>
 
 <!--        CASE CATEGORY2(category2_id)        -->
-    <record model="crm.case.category2" id="category_oppor1">
+    <record model="crm.opportunity.type" id="category_oppor1">
         <field name="name">Existing Business</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>    
-    <record model="crm.case.category2" id="category_oppor2">
+    <record model="crm.opportunity.type" id="category_oppor2">
         <field name="name">New Business</field>
         <field name="section_id" ref="section_sales_department"/>
     </record>
index 3aa7f6b..5df443c 100644 (file)
@@ -50,7 +50,6 @@ class crm_phonecall_categ(osv.osv):
         'probability': lambda *args: 0.0
     }
 crm_phonecall_categ()
-
 class crm_phonecall(osv.osv):
     _name = "crm.phonecall"
     _description = "Phonecall Cases"