[IMP] email_template: cleaned a bit tools imports.

bzr revid: tde@openerp.com-20121109095122-pifpwr5u1hhyjakw
This commit is contained in:
Thibault Delavallée 2012-11-09 10:51:22 +01:00
parent d4df1e1998
commit 78959edc48
1 changed files with 2 additions and 4 deletions

View File

@ -28,8 +28,6 @@ from osv import osv
from osv import fields
import tools
from tools.translate import _
from tools.mail import html_sanitize
from tools import append_content_to_html
from urllib import quote as quote
_logger = logging.getLogger(__name__)
@ -292,10 +290,10 @@ class email_template(osv.osv):
or False
if template.user_signature:
signature = self.pool.get('res.users').browse(cr, uid, uid, context).signature
values['body_html'] = append_content_to_html(values['body_html'], signature)
values['body_html'] = tools.append_content_to_html(values['body_html'], signature)
if values['body_html']:
values['body'] = html_sanitize(values['body_html'])
values['body'] = tools.html_sanitize(values['body_html'])
values.update(mail_server_id=template.mail_server_id.id or False,
auto_delete=template.auto_delete,