Browse Source

fixed imports & codestyle

pull/93/head
Tom Palan 9 years ago
parent
commit
2eb68ab6e6
  1. 5
      mail_bcc/__openerp__.py
  2. 1
      mail_bcc/models/mail_mail.py
  3. 11
      mail_bcc/models/mail_template.py

5
mail_bcc/__openerp__.py

@ -25,7 +25,8 @@
'name': 'Mail BCC',
'summary': 'Blind Carbon Copy available on mails',
'description': """
Adds a BCC field to mail templates and uses them to send a separate copy of the mail to the BCC recipient.
Adds a BCC field to mail templates and uses them to send a separate
copy of the mail to the BCC recipient.
""",
'version': '0.1',
'license': 'AGPL-3',
@ -36,7 +37,7 @@ Adds a BCC field to mail templates and uses them to send a separate copy of the
'mail',
],
'data': [
"views/views.xml"
'views/views.xml'
],
'demo': [],
'test': [],

1
mail_bcc/models/mail_mail.py

@ -6,7 +6,6 @@
import base64
import logging
from email.utils import formataddr
import psycopg2

11
mail_bcc/models/mail_template.py

@ -5,19 +5,11 @@
################################################################
import base64
import copy
import datetime
import dateutil.relativedelta as relativedelta
import logging
import lxml
import urlparse
import openerp
from urllib import urlencode, quote as quote
from openerp import _, api, fields, models, SUPERUSER_ID
from openerp import api, fields, models
from openerp import tools
from openerp import report as odoo_report
from openerp.exceptions import UserError
_logger = logging.getLogger(__name__)
@ -145,4 +137,3 @@ class MailTemplate(models.Model):
partner_ids += self.env['res.partner'].sudo().browse(tpl_partner_ids).exists().ids
results[res_id]['partner_ids'] = partner_ids
return results
Loading…
Cancel
Save