Odoo Help


No handler found error on email field validation ?

on 2/15/14, 3:05 AM 1,206 views

Hi, I have a scenario where I need to validate a email address whether it is valid or not. For validating I have used the following code.


<field name="work_email" widget="email" on_change="onchange_work_email(work_email)"/>


def onchange_work_email(self, cr, uid, ids, work_email): if re.match("^.+\@(\[?)[a-zA-Z0-9\-\.]+\.([a-zA-Z]{2,3}|[0-9]{1,3})(\]?)$", work_email) != None: return True else: raise osv.except_osv(_('Invalid Email'), _('Please enter a valid email address'))

But I got No handler found error. I made changes in only above two files, Did i need to import regular expressions ? what is the error ? Any appreciate suggestions

About This Community

This platform is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Odoo Training Center

Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.

Test it now

Question tools

0 follower(s)


Asked: 2/15/14, 3:05 AM
Seen: 1206 times
Last updated: 3/16/15, 8:10 AM