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. In version 2.6 the invoice.state field has the value 'open' and after full payment it becomes 'paid'