[FIX] account_followup: use %s string formatting to avoid concat None values
authorDenis Ledoux <dle@odoo.com>
Wed, 22 Oct 2014 17:25:23 +0000 (19:25 +0200)
committerDenis Ledoux <dle@odoo.com>
Wed, 22 Oct 2014 17:26:00 +0000 (19:26 +0200)
addons/account_followup/wizard/account_followup_print.py

index 37b4300..52593cc 100644 (file)
@@ -163,7 +163,7 @@ class account_followup_print(osv.osv_memory):
             if partner.max_followup_id.send_letter:
                 partner_ids_to_print.append(partner.id)
                 nbprints += 1
-                message = _("Follow-up letter of ") + "<I> " + partner.partner_id.latest_followup_level_id_without_lit.name + "</I>" + _(" will be sent")
+                message = "%s<I> %s </I>%s" % (_("Follow-up letter of "), partner.partner_id.latest_followup_level_id_without_lit.name, _(" will be sent"))
                 partner_obj.message_post(cr, uid, [partner.partner_id.id], body=message, context=context)
         if nbunknownmails == 0:
             resulttext += str(nbmails) + _(" email(s) sent")