[MERGE] Followup: Fix
bzr revid: mra@mra-laptop-20110105105530-tmw15dp76gie8z2r
This commit is contained in:
commit
dfadb6413e
|
@ -275,8 +275,11 @@ class account_followup_print_all(osv.osv_memory):
|
|||
sub = tools.ustr(data['email_subject'])
|
||||
msg = ''
|
||||
if dest:
|
||||
tools.email_send(src,dest,sub,body)
|
||||
msg_sent += partner.name + '\n'
|
||||
try:
|
||||
tools.email_send(src, dest, sub, body)
|
||||
msg_sent += partner.name + '\n'
|
||||
except Exception, e:
|
||||
raise osv.except_osv('Error !', e )
|
||||
else:
|
||||
msg += partner.name + '\n'
|
||||
msg_unsent += msg
|
||||
|
@ -301,7 +304,7 @@ class account_followup_print_all(osv.osv_memory):
|
|||
'type': 'ir.actions.act_window',
|
||||
'target': 'new',
|
||||
'nodestroy': True
|
||||
}
|
||||
}
|
||||
|
||||
def do_print(self, cr, uid, ids, context=None):
|
||||
if context is None:
|
||||
|
|
Loading…
Reference in New Issue