Automatic status

Hello everybody.
Sorry for my English, I am a French user.
I will try to be as precise as possible.
I would like that when I turn a quote into an invoice, the status of the quote automatically goes into validated (4 in invoiceplane).
I spent more than 3 days to find, I hope that someone can help me.
thanks in advance