On 21/11/13 09:47 -0800, kostas wrote: > Hello Nicolas, > > >Why don't you use the state field of the invoice? > > thanks for your answer, the obvious easy way is to use the state field. > > I was testing tryton 3.0. In my installation (upgrade from 2.6 and 2.8) the > invoice.state field has the value 'posted' for both paid and unpaid > invoices. > Should it be this way ? The amount_to_pay is 0 for the paid ones.
No there is a paid state http://hg.tryton.org/modules/account_invoice/file/58e1d57dd241/invoice.py#l85 The change of state is not based on the amount_to_pay but if all move lines are reconciled. -- Cédric Krier - B2CK SPRL Email/Jabber: [email protected] Tel: +32 472 54 46 59 Website: http://www.b2ck.com/
pgpdTzpcGo4Tg.pgp
Description: PGP signature
