Browse Source

Fix lint errors

pull/117/head
x620 8 years ago
committed by Ildar Nasyrov
parent
commit
903037a0b8
No known key found for this signature in database GPG Key ID: D1FDACDF9B83578
  1. 3
      im_notif/__init__.py
  2. 1
      im_notif/__openerp__.py
  3. 11
      im_notif/im_notif_models.py
  4. 4
      im_notif/static/src/js/im_notif.js

3
im_notif/__init__.py

@ -1,4 +1,5 @@
import im_notif_models
# -*- coding: utf-8 -*-
from . import im_notif_models
def pre_uninstall(cr, registry):

1
im_notif/__openerp__.py

@ -1,3 +1,4 @@
# -*- coding: utf-8 -*-
{
'name': 'IM Notifications',
'version': '1.0.1',

11
im_notif/im_notif_models.py

@ -1,9 +1,11 @@
import openerp
from openerp import api, models, fields, SUPERUSER_ID, tools
# -*- coding: utf-8 -*-
from openerp import SUPERUSER_ID
from openerp import models
from openerp import tools
from openerp.osv import fields as old_fields
from openerp.tools import html2plaintext
from openerp.tools.translate import _
class res_partner(models.Model):
_inherit = 'res.partner'
_columns = {
@ -19,6 +21,7 @@ class res_partner(models.Model):
),
}
class mail_notification(models.Model):
_inherit = 'mail.notification'
@ -98,7 +101,6 @@ class mail_notification(models.Model):
# im_text = im_text + body.split('\n')
return im_text
def _notify_email(self, cr, uid, ids, message_id, force_send=False, user_signature=True, context=None):
# based on addons/mail/mail_followers.py::_notify_email
message = self.pool['mail.message'].browse(cr, SUPERUSER_ID, message_id, context=context)
@ -128,7 +130,6 @@ class mail_notification(models.Model):
return True
def _do_notify_email(self, cr, uid, email_pids, message, force_send=False, user_signature=True, context=None):
# compute email body (signature, company data)

4
im_notif/static/src/js/im_notif.js

@ -40,5 +40,5 @@
txt += _.escape(str.slice(last, str.length));
return txt;
},
})
})()
});
})();
Loading…
Cancel
Save