[FIX] email template mailbox from field

- Use variable name (email_id) instead of string ('email_id')
- Remove comma at end of line so that email_from local variable type is unicode, and not tuple of unicode

bzr revid: olivier.ligot@groupes.be-20110113130217-ibc8pc7vy11ekntm
This commit is contained in:
Olivier Ligot 2011-01-13 14:02:17 +01:00
parent 0d4383f970
commit f76cb13bed
1 changed files with 1 additions and 1 deletions

View File

@ -574,7 +574,7 @@ This is useful for CRM leads for example"),
# we should keep it all, name is probably specified in the address
email_from = from_account['email_id']
else:
email_from = tools.ustr(from_account['name']) + "<" + tools.ustr('email_id') + ">",
email_from = tools.ustr(from_account['name']) + "<" + tools.ustr(email_id) + ">"
# FIXME: should do this in a loop and rename template fields to the corresponding
# mailbox fields. (makes no sense to have different names I think.