[Fix]: crm: fix the problem of category2 for all object

bzr revid: sbh@tinyerp.com-20100113044435-4w4sieat2g9gczw1
This commit is contained in:
sbh (Open ERP)
2010-01-13 10:14:35 +05:30
parent b0f53ed22d
commit 1f5242ca73
7 changed files with 7 additions and 16 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ class crm_claim(osv.osv):
"to be created with a factor for each level from 0 (Very dissatisfied) to 10 (Extremely satisfied)."),
'categ_id': fields.many2one('crm.claim.categ','Category', domain="[('section_id','=',section_id)]"),
'priority': fields.selection(AVAILABLE_PRIORITIES, 'Priority'),
'category2_id': fields.many2one('crm.case.category2', 'Category Name', domain="[('section_id','=',section_id)]"),
'category2_id': fields.many2one('crm.claim.type', 'Claim Type', domain="[('section_id','=',section_id)]"),
'partner_name': fields.char("Employee's Name", size=64),
'partner_mobile': fields.char('Mobile', size=32),
+1 -1
View File
@@ -41,7 +41,7 @@
<field name="section_id" ref="section_sales_department"/>
</record>
<record model="crm.case.category2" id="categ2_fund4">
<record model="crm.fundraising.type" id="categ2_fund4">
<field name="name">Demand Draft</field>
<field name="section_id" ref="section_sales_department"/>
</record>
+1 -1
View File
@@ -87,7 +87,7 @@ class crm_fundraising(osv.osv):
'partner_phone': fields.char('Phone', size=32),
'partner_mobile': fields.char('Mobile', size=32),
'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('section_id','=',section_id)]"),
'category2_id': fields.many2one('crm.case.category2', 'Category Name', domain="[('section_id','=',section_id)]"),
'category2_id': fields.many2one('crm.fundraising.type', 'Fundraising Type', domain="[('section_id','=',section_id)]"),
'duration': fields.float('Duration'),
'case_id': fields.many2one('crm.case', 'Related fundraising'),
'ref' : fields.reference('Reference', selection=_links_get, size=128),
-9
View File
@@ -59,15 +59,6 @@ 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"
+1 -1
View File
@@ -80,7 +80,7 @@ class crm_lead(osv.osv):
_inherit = 'crm.case'
_columns = {
'categ_id': fields.many2one('crm.lead.categ', 'Category', domain="[('section_id','=',section_id)]"),
'category2_id': fields.many2one('crm.case.category2', 'Category Name', domain="[('section_id','=',section_id)]"),
'category2_id': fields.many2one('crm.lead.type', 'Lead Type Name', domain="[('section_id','=',section_id)]"),
'partner_name': fields.char("Employee's Name", size=64),
'partner_name2': fields.char('Employee Email', size=64),
'partner_phone': fields.char('Phone', size=32),
+2 -2
View File
@@ -74,7 +74,7 @@
<field name="name">Print</field>
<field name="section_id" ref="section_sales_department"/>
</record>
<record model="ccrm.lead.type" id="category_lead5">
<record model="crm.lead.type" id="category_lead5">
<field name="name">Web</field>
<field name="section_id" ref="section_sales_department"/>
</record>
@@ -82,7 +82,7 @@
<field name="name">Radio</field>
<field name="section_id" ref="section_sales_department"/>
</record>
<record model="ccrm.lead.type" id="category_lead7">
<record model="crm.lead.type" id="category_lead7">
<field name="name">Television</field>
<field name="section_id" ref="section_sales_department"/>
</record>
+1 -1
View File
@@ -77,7 +77,7 @@ class crm_opportunity(osv.osv):
_columns = {
'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('section_id','=',section_id)]"),
'categ_id': fields.many2one('crm.opportunity.categ', 'Category', domain="[('section_id','=',section_id)]"),
'category2_id': fields.many2one('crm.case.category2', 'Category Name', domain="[('section_id','=',section_id)]"),
'category2_id': fields.many2one('crm.opportunity.type', 'Opportunity Type', domain="[('section_id','=',section_id)]"),
'priority': fields.selection(AVAILABLE_PRIORITIES, 'Priority'),
'probability': fields.float('Probability (%)'),
'planned_revenue': fields.float('Planned Revenue'),