[FIX] account_followup: use %s string formatting to avoid concat None values

This commit is contained in:
Denis Ledoux 2014-10-22 19:25:23 +02:00
parent 3a0af6af7b
commit b4d370173c
1 changed files with 1 additions and 1 deletions

View 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")