Il giorno venerdì 26 gennaio 2018 11:01:57 UTC+1, Sergi Almacellas Abellana ha 
scritto:
> El 26/01/18 a les 10:58, Cato Nano ha escrit:
> > One of my fields can contain values that are in a certain range only
> > 
> > And such range depends on the content of another field
> > 
> > If the user inserts a value that is out of that range, then the record 
> > shouldn't be saved.
> > 
> > How do I achieve this ?
> > 
> 
> You can use a domain with which evaluates the value of the other field
> using Eval.
> 
> Here is an example which compares that start_date is before end_date:
> 
> http://hg.tryton.org/modules/account/file/6cf1d34490c0/fiscalyear.py#l27
> 
> Hope it helps.
> 
> 
> -- 
> Sergi Almacellas Abellana
> www.koolpi.com
> Twitter: @pokoli_srk

yes Sergi, that helps. Thank you so much

-- 
You received this message because you are subscribed to the Google Groups 
"tryton" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton/4f012621-344e-46c1-a417-3176bce2be44%40googlegroups.com.

Reply via email to