[IMP] project: add author of incoming email as customer

of the newly created task.
This commit is contained in:
Darshan Kalola
2015-03-19 13:02:53 +01:00
committed by Thibault Delavallée
parent 633c166c77
commit bc11d27f62
+1
View File
@@ -1150,6 +1150,7 @@ class task(osv.osv):
defaults = {
'name': msg.get('subject'),
'planned_hours': 0.0,
'partner_id': msg.get('author_id', False)
}
defaults.update(custom_values)
res = super(task, self).message_new(cr, uid, msg, custom_values=defaults, context=context)