On 30 Sep 14:12, Jakob Lang wrote:
> Hi all,
> 
> I need some help with creating an additional tab for the Invoice section.
> I would like to add a tab with all invoices that are not yet payed
> (state=posted) and have been there for more than 30 days.
> I found how to add the new tab (new domain) but I have no idea how to add
> the date part and how to add both filters together.
> I need something like this:
> [('state', '=', 'posted')&('Invoice date','<',today-29)]
> Any ideas how to do that? Is there some documentation about things like
> that?

You must use the pyson: Date.

http://doc.tryton.org/3.2/trytond/doc/ref/pyson.html?highlight=pyson#trytond.pyson.Date

-- 
Cédric Krier - B2CK SPRL
Email/Jabber: [email protected]
Tel: +32 472 54 46 59
Website: http://www.b2ck.com/

Attachment: pgpCDrlNBMXgV.pgp
Description: PGP signature

Reply via email to