[IMP] crm: crm send wizard

bzr revid: hmo@tinyerp.com-20100322095640-m4ndyih1y96vb4ku
This commit is contained in:
Harry (Open ERP)
2010-03-22 15:26:40 +05:30
parent 51e376ba0c
commit e593dc39df
+3
View File
@@ -210,6 +210,9 @@ class crm_send_new_email(osv.osv_memory):
mod_obj = self.pool.get(model)
if context.get('mail') == 'reply':
return True
if tools.config.get('email_from')
return True
for case in mod_obj.browse(cr, uid, context.get('active_ids', [])):
if not case.user_id:
raise osv.except_osv(_('Error'), _('You must define a responsible user for this case in order to use this action!'))