Anup(OpenERP) has proposed merging
lp:~openerp-dev/openobject-addons/5.0-opw-17174-ach into
lp:openobject-addons/5.0.
Requested reviews:
OpenERP Core Team (openerp)
Related bugs:
Bug #834781 in OpenERP Addons: "[V5] account_followup : doesn't send email
with attachment"
https://bugs.launchpad.net/openobject-addons/+bug/834781
For more details, see:
https://code.launchpad.net/~openerp-dev/openobject-addons/5.0-opw-17174-ach/+merge/74995
Hello,
When you try to send followups to customers the attachments were not being sent
with the email.
This fixes the issue.
Thanks.
--
https://code.launchpad.net/~openerp-dev/openobject-addons/5.0-opw-17174-ach/+merge/74995
Your team OpenERP R&D Team is subscribed to branch
lp:~openerp-dev/openobject-addons/5.0-opw-17174-ach.
=== modified file 'account_followup/wizard/wizard_followup_print.py'
--- account_followup/wizard/wizard_followup_print.py 2010-06-11 07:46:56 +0000
+++ account_followup/wizard/wizard_followup_print.py 2011-09-12 13:37:20 +0000
@@ -205,7 +205,11 @@
sub = tools.ustr(data['form']['email_subject'])
msg = ''
if dest:
- tools.email_send(src,dest,sub,body)
+ data_dict = {'form':{'partner_ids':[(6,0,[partner.id])]}}
+ datax,frmt = netsvc.LocalService('report.account_followup.followup.print').create(cr, uid, [],data_dict,{})
+ fname = 'followup-' + str(partner.name) +'.'+frmt
+ attach = [(fname,datax)]
+ tools.email_send(src, dest, sub, body,attach=attach)
msg_sent += partner.name + '\n'
else:
msg += partner.name + '\n'
_______________________________________________
Mailing list: https://launchpad.net/~openerp-dev-gtk
Post to : [email protected]
Unsubscribe : https://launchpad.net/~openerp-dev-gtk
More help : https://help.launchpad.net/ListHelp