[IMP] crm_claim: put active_id field on crm.claim model
bzr revid: ron@tinyerp.com-20111123132410-fucil8261sijpvtq
This commit is contained in:
parent
691836ef94
commit
80990349d3
|
@ -46,6 +46,7 @@ class crm_claim(crm.crm_case, osv.osv):
|
|||
_columns = {
|
||||
'id': fields.integer('ID', readonly=True),
|
||||
'name': fields.char('Claim Subject', size=128, required=True),
|
||||
'active': fields.boolean('Active'),
|
||||
'action_next': fields.char('Next Action', size=200),
|
||||
'date_action_next': fields.datetime('Next Action Date'),
|
||||
'description': fields.text('Description'),
|
||||
|
@ -95,6 +96,7 @@ class crm_claim(crm.crm_case, osv.osv):
|
|||
'date': lambda *a: time.strftime('%Y-%m-%d %H:%M:%S'),
|
||||
'company_id': lambda s, cr, uid, c: s.pool.get('res.company')._company_default_get(cr, uid, 'crm.case', context=c),
|
||||
'priority': lambda *a: crm.AVAILABLE_PRIORITIES[2][0],
|
||||
'active': lambda *a: 1
|
||||
}
|
||||
|
||||
def onchange_partner_id(self, cr, uid, ids, part, email=False):
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
-
|
||||
Customer claim after sale our product. so He send claim request by email.
|
||||
Customer requests a claim after the sale of our product. He sends claim request by email.
|
||||
-
|
||||
Mail script will be fetched him request from mail server. so I process that mail after read EML file
|
||||
-
|
||||
|
@ -38,7 +38,7 @@
|
|||
claim_ids = self.search(cr, uid, [('email_from','=', 'Mr. John Right <info@customer.com>')])
|
||||
self.case_close(cr, uid, claim_ids)
|
||||
-
|
||||
I check Claim details after closed
|
||||
I check Claim details after closed.
|
||||
-
|
||||
!python {model: crm.claim}: |
|
||||
claim_ids = self.search(cr, uid, [('email_from','=', 'Mr. John Right <info@customer.com>')])
|
||||
|
|
Loading…
Reference in New Issue