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 -- 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/25b56236-062f-f587-8877-d8ef5b5e11af%40koolpi.com.
