[FIX] mail: make read more term translatable

opw-631860
This commit is contained in:
Nicolas Lempereur 2015-03-31 12:16:33 +02:00
parent f2930c548e
commit 10c6fe4a6c
1 changed files with 2 additions and 1 deletions

View File

@ -33,6 +33,7 @@ from email.utils import getaddresses
import openerp
from openerp.loglevels import ustr
from openerp.tools.translate import _
_logger = logging.getLogger(__name__)
@ -281,7 +282,7 @@ def html_email_clean(html, remove=False, shorten=False, max_length=300, expand_o
read_more_node.append(read_more_separator_node)
read_more_link_node = _create_node(
'a',
expand_options.get('oe_expand_a_content', 'read more'),
expand_options.get('oe_expand_a_content', _('read more')),
None,
{
'href': expand_options.get('oe_expand_a_href', '#'),