[IMP]: remove stage type for crm fundraising

bzr revid: ksa@tinyerp.co.in-20110817085404-uaezg715cn4e5310
This commit is contained in:
ksa (Open ERP)
2011-08-17 14:24:04 +05:30
parent c77f9fd715
commit 73742c80a3
2 changed files with 2 additions and 17 deletions
+1 -16
View File
@@ -61,7 +61,7 @@ class crm_fundraising(crm.crm_case, osv.osv):
'partner_name2': fields.char('Employee Email', size=64),
'partner_phone': fields.char('Phone', size=32),
'partner_mobile': fields.char('Mobile', size=32),
'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('type', '=', 'fundraising')]"),
'stage_id': fields.many2one ('crm.case.stage', 'Stage', domain="[('section_ids', '=', section_id)]"),
'type_id': fields.many2one('crm.case.resource.type', 'Campaign', \
domain="[('section_id','=',section_id)]"),
'duration': fields.float('Duration'),
@@ -95,18 +95,3 @@ class crm_fundraising(crm.crm_case, osv.osv):
crm_fundraising()
class crm_stage_fundraising(osv.osv):
def _get_type_value(self, cr, user, context):
list = super(crm_stage_fundraising, self)._get_type_value(cr, user, context)
list.append(('fundraising','Fundraising'))
return list
_inherit = "crm.case.stage"
_columns = {
'type': fields.selection(_get_type_value, 'Type'),
}
crm_stage_fundraising()
@@ -17,7 +17,7 @@
<data>
<xpath expr="//field[@name='name']" position="before">
<filter icon="terp-dolar" name="fundraising"
string="Fundraising" domain="[('type', '=', 'fundraising')]" context="{'type' : 'fundraising'}"/>
string="Fundraising" domain="[('section_ids', '=', section_id)]"/>
</xpath>
</data>
</field>