Hi folks, my method is called from on_change tag, i defined to evaluate that 
field.

    def onchange_cedula(self, cr, uid, ids, cedula):
        if len(cedula)==10:
           return 
{'value':{'cedula':cedula}}
        else:
            #return 
{'value':{'cedula':""}}
            raise osv.except_osv("User 
error", "wrong length")


after raise error the value in field is not delete it, i want to set it empty i 
try with commented line but message logically dont appears.

anyone has a suggest?

thx in advance

pd: i know with constraints could works but i want when lost focus




-------------------- m2f --------------------

--
http://www.openobject.com/forum/viewtopic.php?p=32875#32875

-------------------- m2f --------------------


_______________________________________________
Tinyerp-users mailing list
http://tiny.be/mailman/listinfo/tinyerp-users

Reply via email to