Display last posted invoice in invoice number error
From https://discuss.tryton.org/t/error-sequence-has-already-been-used-for-invoice/3779.
It is better to give the user directly the last invoice having used the sequence but for that we must be able to order on Coalesce(accounting_date, invoice_date)
. I think it can be the order of accounting_date
field.