Hello, This is an example when enter same login in user refer file "res.users.py" in base folder
_sql_constraints = [ ('login_key', 'UNIQUE (login)', 'You can not have two users with the same login !') ] this is an example of constraint method . refer "res.company.py" in base folder _constraints = [ (_check_recursion, 'Error! You can not create recursive companies.', ['parent_id']) ] ------------------------ thanks and regards anoop anoopputhukk...@gmail.com -------------------- m2f -------------------- -- http://www.openobject.com/forum/viewtopic.php?p=60830#60830 -------------------- m2f -------------------- _______________________________________________ Tinyerp-users mailing list http://tiny.be/mailman2/listinfo/tinyerp-users