From 63d993e45d34e2250734b861d5900fa74cb75ae8 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Fri, 21 Dec 2012 14:39:28 +0100 Subject: [PATCH] [CLEAN] invite wizard: removed unused method onchange_partner_ids. Cleaned a bit code in invite_view. bzr revid: tde@openerp.com-20121221133928-lytc76vbs0bdnhuz --- addons/mail/wizard/invite.py | 11 ----------- addons/mail/wizard/invite_view.xml | 5 +++-- 2 files changed, 3 insertions(+), 13 deletions(-) diff --git a/addons/mail/wizard/invite.py b/addons/mail/wizard/invite.py index 0b8b7bc7895..ee3053014af 100644 --- a/addons/mail/wizard/invite.py +++ b/addons/mail/wizard/invite.py @@ -49,17 +49,6 @@ class invite_wizard(osv.osv_memory): 'message': fields.html('Message'), } - def onchange_partner_ids(self, cr, uid, ids, value, context=None): - """ onchange_partner_ids (value format: [[6, 0, [3, 4]]]). The - basic purpose of this method is to check that destination partners - effectively have email addresses. Otherwise a warning is thrown. - """ - res = {'value': {}} - if not value or not value[0] or not value[0][0] == 6: - return - res.update(self.pool.get('mail.message').check_partners_email(cr, uid, value[0][2], context=context)) - return res - def add_followers(self, cr, uid, ids, context=None): for wizard in self.browse(cr, uid, ids, context=context): model_obj = self.pool.get(wizard.res_model) diff --git a/addons/mail/wizard/invite_view.xml b/addons/mail/wizard/invite_view.xml index 65463529948..5b3b679ae9f 100644 --- a/addons/mail/wizard/invite_view.xml +++ b/addons/mail/wizard/invite_view.xml @@ -11,8 +11,9 @@ - +