[CLEAN] invite wizard: removed unused method onchange_partner_ids. Cleaned a bit code in invite_view.

bzr revid: tde@openerp.com-20121221133928-lytc76vbs0bdnhuz
This commit is contained in:
Thibault Delavallée
2012-12-21 14:39:28 +01:00
parent 839d61f97f
commit 63d993e45d
2 changed files with 3 additions and 13 deletions
-11
View File
@@ -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)
+3 -2
View File
@@ -11,8 +11,9 @@
<group>
<field name="res_model" invisible="1"/>
<field name="res_id" invisible="1"/>
<field name="partner_ids" widget="many2many_tags_email" placeholder="Add contacts to notify..."
context="{'force_email':True}"/>
<field name="partner_ids" widget="many2many_tags_email"
placeholder="Add contacts to notify..."
context="{'force_email':True}"/>
<field name="message"/>
</group>
<footer>