From 0abe605544641bb0788f6b84f8df76603dd90b93 Mon Sep 17 00:00:00 2001 From: Paramjit Singh Sahota Date: Fri, 15 Mar 2013 18:18:43 +0530 Subject: [PATCH] [IMP] Oops sorry forgot to remove the prints and improved code. bzr revid: psa@tinyerp.com-20130315124843-xtp19rbm2cvyfb67 --- addons/mail/mail_thread.py | 2 -- addons/mail/static/src/js/mail_followers.js | 6 +++--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/addons/mail/mail_thread.py b/addons/mail/mail_thread.py index ab4eead1a6e..720afd7fd8f 100644 --- a/addons/mail/mail_thread.py +++ b/addons/mail/mail_thread.py @@ -163,7 +163,6 @@ class mail_thread(osv.AbstractModel): return res def apply_edited_subtypes(self, cr, uid, ids, partner_id, check_list, context=None): - print "\n\n uid, ids, partner_id, check_list,,>", uid, ids, partner_id, check_list, """ Apply the edited subtypes of the user.""" fol_obj = self.pool.get('mail.followers') @@ -172,7 +171,6 @@ class mail_thread(osv.AbstractModel): ('res_id', 'in', ids), ('res_model', '=', self._name), ], context=context) - print "\n fol _ids>", fol_ids, check_list fol_obj.write(cr, uid, fol_ids, {'subtype_ids': [(6,0, check_list)]}, context=context) return True diff --git a/addons/mail/static/src/js/mail_followers.js b/addons/mail/static/src/js/mail_followers.js index 0bfcbfc29e9..b778f3bb6b2 100644 --- a/addons/mail/static/src/js/mail_followers.js +++ b/addons/mail/static/src/js/mail_followers.js @@ -112,9 +112,9 @@ openerp_mail_followers = function(session, mail) { on_apply_subtype: function(id, partner_id) { var check_list = new Array(); - _($('.oe_edit_actions input[type="checkbox"]')).each(function (records) { - if ($(records).is(':checked')) { - check_list.push(parseInt($(records).data('id'))); + _($('.oe_edit_actions input[type="checkbox"]')).each(function (record) { + if ($(record).is(':checked')) { + check_list.push(parseInt($(record).data('id'))); } });