Check invoice sequence against invoice date
As discussed on https://discuss.tryton.org/t/prevent-using-same-sequence-on-earlier-customer-invoice-which-date-to-use/4840, it will be more flexible to only check against the invoice date instead of the accounting date.