← Back to team overview

openerp-community-reviewer team mailing list archive

[Bug 1268654] [NEW] [6.1] Mailing from template fails when signature is on and no plain text

 

Public bug reported:

If you create a mailing template for which you enable user signature and
use HTML body instead of plain text, the method 'generate_email' from
the 'email_template' module raises an exception (TypeError: unsupported
operand type(s) for +=: 'bool' and 'unicode')  on line 339

    values['body_text'] += '\n\n' + signature

because this sentence is not encapsulated into a

    if mailbox_values['body_text']:

sentence (contrarily to OpenERP 6.0, where these conditionals were
properly programmed).

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


** Tags: email html signature template

-- 
You received this bug notification because you are a member of OpenERP
Community Backports Team, which is subscribed to OpenERP Community
Backports (Addons).
https://bugs.launchpad.net/bugs/1268654

Title:
  [6.1] Mailing from template fails when signature is on and no plain
  text

Status in OpenERP Community Backports (Addons):
  New

Bug description:
  If you create a mailing template for which you enable user signature
  and use HTML body instead of plain text, the method 'generate_email'
  from the 'email_template' module raises an exception (TypeError:
  unsupported operand type(s) for +=: 'bool' and 'unicode')  on line 339

      values['body_text'] += '\n\n' + signature

  because this sentence is not encapsulated into a

      if mailbox_values['body_text']:

  sentence (contrarily to OpenERP 6.0, where these conditionals were
  properly programmed).

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


Follow ups

References