improvement

bzr revid: fp@tinyerp.com-20081102154928-obpfr7em1xx0vzz2
This commit is contained in:
Fabien Pinckaers 2008-11-02 16:49:28 +01:00
parent 62e890eded
commit 90f1e97db3
2 changed files with 5 additions and 3 deletions

View File

@ -563,6 +563,7 @@ class crm_case(osv.osv):
'som': case.som.id,
'canal_id': case.canal_id.id,
'user_id': uid,
'date': case.date or time.strftime('%Y-%m-%d %H:%M:%S'),
'case_id': case.id,
'section_id': case.section_id.id
}
@ -575,6 +576,7 @@ class crm_case(osv.osv):
case.user_id.address_id.email) or False
obj.create(cr, uid, data, context)
return True
_history = __history
def create(self, cr, uid, *args, **argv):
res = super(crm_case, self).create(cr, uid, *args, **argv)

View File

@ -54,7 +54,7 @@ class make_meeting(wizard.interface):
case = case_obj.browse(cr, uid, data['id'])
return {'date': case.date, 'duration': case.duration or 2.0}
def _makeOrder(self, cr, uid, data, context):
def _makeMeeting(self, cr, uid, data, context):
pool = pooler.get_pool(cr.dbname)
case_obj = pool.get('crm.case')
@ -62,7 +62,7 @@ class make_meeting(wizard.interface):
'date': data['form']['date'],
'duration': data['form']['duration']
}, context=context)
case_obj = pool.get('crm.case')
case_obj._history(cr, uid, case_obj.browse(cr, uid, [data['id']]), 'meeting')
return {}
states = {
@ -73,7 +73,7 @@ class make_meeting(wizard.interface):
},
'order': {
'actions': [],
'result': {'type': 'action', 'action': _makeOrder, 'state': 'end'}
'result': {'type': 'action', 'action': _makeMeeting, 'state': 'end'}
}
}