[IMP] crm : Added a new 'crm.payment.mode' object in order to relate the 'Payment Mode' field of 'crm.lead'.
bzr revid: mdi@tinyerp.com-20120801064442-ljg4sctsco2y1ii9
This commit is contained in:
parent
60dfa1b419
commit
39f54a36a0
|
@ -194,4 +194,13 @@ def _links_get(self, cr, uid, context=None):
|
|||
res = obj.read(cr, uid, ids, ['object', 'name'], context)
|
||||
return [(r['object'], r['name']) for r in res]
|
||||
|
||||
class crm_payment_mode(osv.osv):
|
||||
""" Payment Mode for Fund """
|
||||
_name = "crm.payment.mode"
|
||||
_description = "CRM Payment Mode"
|
||||
_columns = {
|
||||
'name': fields.char('Payment Mode', size=64, required=True),
|
||||
'section_id': fields.many2one('crm.case.section', 'Sales Team'),
|
||||
}
|
||||
|
||||
# vim:expandtab:smartindent:tabstop=4:softtabstop=4:shiftwidth=4:
|
||||
|
|
|
@ -35,16 +35,6 @@ CRM_LEAD_PENDING_STATES = (
|
|||
crm.AVAILABLE_STATES[4][0], # Pending
|
||||
)
|
||||
|
||||
class crm_payment_mode(osv.osv):
|
||||
""" Payment Mode for Fund """
|
||||
_name = "crm.payment.mode"
|
||||
_description = "Payment Mode"
|
||||
_columns = {
|
||||
'name': fields.char('Payment Mode', size=64, required=True),
|
||||
'section_id': fields.many2one('crm.case.section', 'Sales Team'),
|
||||
}
|
||||
crm_payment_mode()
|
||||
|
||||
class crm_lead(base_stage, osv.osv):
|
||||
""" CRM Lead Case """
|
||||
_name = "crm.lead"
|
||||
|
|
Loading…
Reference in New Issue