Re: [tryton-dev] Best way to test for a date in a date field

2017-05-04 Thread Vincent Bastos
On Wednesday, May 3, 2017 at 5:31:49 PM UTC+10, Sergi Almacellas Abellana wrote: > > El 02/05/17 a les 07:59, Vincent Bastos ha escrit: > > 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. > >

Re: [tryton-dev] Best way to test for a date in a date field

2017-05-03 Thread Sergi Almacellas Abellana
El 02/05/17 a les 07:59, Vincent Bastos ha escrit: 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', '=', sel

[tryton-dev] Best way to test for a date in a date field

2017-05-03 Thread Vincent Bastos
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'),