[IMP]: Create category2 object for all cases
bzr revid: sbh@tinyerp.com-20100113043109-49cyut2k5r73kjom
This commit is contained in:
@@ -26,17 +26,17 @@
|
||||
|
||||
<!-- 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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -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()
|
||||
|
||||
@@ -58,35 +58,35 @@
|
||||
</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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
@@ -70,11 +70,11 @@
|
||||
</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>
|
||||
|
||||
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user