if not case.section_id.reply_to:
raise osv.except_osv(_('Error!'),("Reply TO is not specified in Section"))
if not case.email_from:
- raise osv.except_osv(_('Error!'),("Partner Email is not specified in Case"))
+ raise osv.except_osv(_('Error!'),("Partner Email is not specified in Case"))
if case.section_id.reply_to and case.email_from:
src = case.email_from
-
-
+ if not src:
+ raise osv.except_osv(_('Error!'),
+ _("No E-Mail ID Found for the Responsible Partner or missing reply address in section!"))
-
dest = case.section_id.reply_to
body = case.email_last or case.description
if not destination:
<field name="view_mode">tree,form</field>
<field name="view_id" ref="crm_email_gateway_server_tree"/>
</record>
- <menuitem id="crm_email_gateway_server_menu" name="Email Gateway Server" parent="next_id_51" action="crm_email_gateway_server_act" />
-
+ <menuitem id="crm_email_gateway_server_menu" name="Email Gateway Server" parent="next_id_51" action="crm_email_gateway_server_act" />
-
</data>
</openerp>