← Back to team overview

openerp-india team mailing list archive

[Bug 1245318] Re: "Send an Email" wizard in an invoice doesn't send email

 

** Attachment added: "send an email.ogv"
   https://bugs.launchpad.net/openobject-addons/+bug/1245318/+attachment/3893460/+files/send%20an%20email.ogv

** Changed in: openobject-addons
       Status: New => Incomplete

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

Title:
  "Send an Email" wizard in an invoice doesn't send email

Status in OpenERP Addons (modules):
  Incomplete

Bug description:
  
  This is related with the button "Send an Email" that is added by "account_followup" module.

  When I go on a Open Invoice, I have a button "Send an Email". Clicking
  it will make appear a Compose email message. The "Send" message will
  close the wizard WITHOUT sending an email and without warning about
  it.

  I expect that a "Send an Email" wizard will actually send an email,
  whatever the value of the attribute "Receive Messages by Email" of the
  "res.partner" to whom the mail is sent.

  
  Diagnosis
  ---------

  I finally found that it's related to the "Accept incoming mail"
  attribute of the "res.partner" to whom the mail is sent. And this
  parameter has to be set to "All Message" (and not "Emails" as
  expected).

  In the code, we can find in "mail/wizard/mail_compose_message.py" that
  the mail is considered a 'comment' (and not 'email', which is a valid
  value).

  So a workaround is to set "All Message" in "Accept incoming mail"
  attribute of the "res.partner".

  
  Solution
  -------

  Changing in the code the value 'comment' to 'email' in
  ``mail/wizard/mail_compose_message.py`` will only correct part of the
  issue by allowing the wizard to send the email when the res.partner to
  whom the message is to be sent has "Accept incoming mail" attribute
  set to "Incoming Emails".

  
  I guess that there are some internal or functional logic here that take place, and I am ready to hear that this make sense. But for now, it appears to me as an obvious ergonomical non-sense.

  If this behavior is not to be corrected, consider renaming the button
  please. Or displaying an warning message to tell that the email is not
  being sent and indicate why.

  Thank for your time !

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


References