← Back to team overview

openerp-india team mailing list archive

[Bug 1272439] [NEW] [trunk][saas-2]Partner Mass Mailing: sending mail crashes if no template is selected

 

Public bug reported:

On [saas-2], sending mail using the partner mass mailing feature and
selecting more than one partner produces a stack trace:

- Go to one of the runbot/saas-2 instances
- Messaging/Organizer/Contacts
- In the partners list, select more than one partner
- More/Partner Mass Mailing
- In the mail composer, rid off the proposed template, fill-in a subject and a body
- Send

=>

  File "/home/odoo/runbot/static/openerp-dev-saas-2-28528/server/openerp/addons/mail/wizard/mail_compose_message.py", line 261, in send_mail
    all_mail_values = self.get_mail_values(cr, uid, wizard, res_ids, context=context)
  File "/home/odoo/runbot/static/openerp-dev-saas-2-28528/server/openerp/addons/mass_mailing/wizard/mail_compose_message.py", line 44, in get_mail_values
    res = super(MailComposeMessage, self).get_mail_values(cr, uid, wizard, res_ids, context=context)
  File "/home/odoo/runbot/static/openerp-dev-saas-2-28528/server/openerp/addons/mail/wizard/mail_compose_message.py", line 327, in get_mail_values
    email_dict.pop('reply_to')
KeyError: 'reply_to'

Note:
* it seems the issue does not fire if only one partner is selected.
* not reproducible in [7.0]
* revision 9098 for saas-2/addons when describing the bug

Thanks to fix this issue on [saas-2] branch.

** Affects: openobject-addons
     Importance: Undecided
         Status: New

-- 
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/1272439

Title:
  [trunk][saas-2]Partner Mass Mailing: sending mail crashes if no
  template is selected

Status in OpenERP Addons (modules):
  New

Bug description:
  On [saas-2], sending mail using the partner mass mailing feature and
  selecting more than one partner produces a stack trace:

  - Go to one of the runbot/saas-2 instances
  - Messaging/Organizer/Contacts
  - In the partners list, select more than one partner
  - More/Partner Mass Mailing
  - In the mail composer, rid off the proposed template, fill-in a subject and a body
  - Send

  =>

    File "/home/odoo/runbot/static/openerp-dev-saas-2-28528/server/openerp/addons/mail/wizard/mail_compose_message.py", line 261, in send_mail
      all_mail_values = self.get_mail_values(cr, uid, wizard, res_ids, context=context)
    File "/home/odoo/runbot/static/openerp-dev-saas-2-28528/server/openerp/addons/mass_mailing/wizard/mail_compose_message.py", line 44, in get_mail_values
      res = super(MailComposeMessage, self).get_mail_values(cr, uid, wizard, res_ids, context=context)
    File "/home/odoo/runbot/static/openerp-dev-saas-2-28528/server/openerp/addons/mail/wizard/mail_compose_message.py", line 327, in get_mail_values
      email_dict.pop('reply_to')
  KeyError: 'reply_to'

  Note:
  * it seems the issue does not fire if only one partner is selected.
  * not reproducible in [7.0]
  * revision 9098 for saas-2/addons when describing the bug

  Thanks to fix this issue on [saas-2] branch.

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


Follow ups

References