← Back to team overview

openerp-india team mailing list archive

[Bug 941428] Re: [6.1.1.0] Invoice Email is send without attachment

 

The patch provided for 6.1-1 didn't work for me.  I'm not sure why,
perhaps this is due to additional modules or different settings.

After some debugging I found that although attachments were being stored
the mail message to attachment table was not being updated and the
attachments appeared to be orphaned. The required code appears to be
available in mail/mail_message.py so I moved this across to
email_template.py along with a couple of other fixes...

* report_name was not subject to place holder expansion
* context does not appear to be set when sending interactively via the sidebar (for the moment I have just ignored context if not set but perhaps it should be investigated)


** Patch added: "email_template no attachments fix part 2"
   https://bugs.launchpad.net/openobject-addons/+bug/941428/+attachment/3178506/+files/email_template_no_attachments.patch

-- 
You received this bug notification because you are a member of OpenERP
Indian Team, which is subscribed to OpenERP Addons.
https://bugs.launchpad.net/bugs/941428

Title:
  [6.1.1.0] Invoice Email is send without attachment

Status in OpenERP Addons (modules):
  Fix Committed
Status in OpenERP Addons 6.1 series:
  Fix Committed

Bug description:
  
  Hi all, 


   I have installed the following modules:
   crm 	 				Customer Relationship Management 	6.1.1.0 
   account_voucher 	 	Accounting & Finance 	 			6.1.1.0 
   account_accountant 	Accounting & Finance 	 			6.1.1.1 
   sale 	 				Sales Management 	 				6.1.1.0 
   stock 	 				Warehouse Management 	 			6.1.1.1 
   purchase 	 			Purchase Management 				6.1.1.1 
   account 	 			Accounting & Finance 	 			6.1.1.1 
   base_action_rule 	 	Sales Management 	 				6.1.1.0 
   document 	 			Knowledge Management 	 			6.1.2.1 
   edi 	 					Tools 	 							6.1.1.0 
   email_template 	 		Marketing 	 						6.1.1.1 
   fetchmail 	 			Tools 	 							6.1.1.0 
   l10n_de 	 			Account Charts 			 			6.1.1.0 
   product 	 			Sales Management 	 				6.1.1.1 

  
  1)  Steps to reproduce the issue you have observed
   
   1. Go to Settings | Configuration | Email | Outgoing Mail Server | 
   2. Set a Email server (Googleapps)
   3. Go to Settings | Configuration | Email | Templates | Invoice
   4. Click Edit | Advanced
   5. Attach Report | Optional report to print and attach: Invoices | Report Filename: Invoice
   6. Save
   
   7. Create an Invoice
   8. E-Mail is send out without attachment

  2)  The result you observed
  Email is send without an attachment (no entries within the logfile)

  3)  The result you expected
  Receive an email with invoice attachment without clicking on a seperate link

  4)  The platform your are using

  Linux ubuntu 2.6.32-38-server #83-Ubuntu SMP Wed Jan 4 11:26:59 UTC 2012 x86_64 GNU/Linux
  Ubuntu 10.04.4 LTS

To manage notifications about this bug go to:
https://bugs.launchpad.net/openobject-addons/+bug/941428/+subscriptions


References