Hi,

I wanted to know what the best way to write a domain for a search call to 
test for records that have a date in a particular field.

My idea is something like this:

nodate = Date(0)

invoices = Invoice.search([
            ('lease', '=', self.id),
            ('state', '!=', 'paid'),
            ('mydate', '!=', nodate),
        ], order=[('invoice_date', 'ASC')])

-- 
You received this message because you are subscribed to the Google Groups 
"tryton-dev" group.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/tryton-dev/8355fce6-1a12-45e8-be59-b963d4fc3909%40googlegroups.com.

Reply via email to