Sales Order automatic Convert to Invoice using boolean True or false

Sales Order automatic Convert to Invoice using boolean True or false

It is possible to convert the Sales order to an invoice using a boolean field, true or false

Example:
I create a field in my Sales Order, I name it QBO Invoice, and the field type is Boolean, true or false. Let's say the default is false, so when I change it to true or it's already true, I want to automatically convert the Sales Order into an Invoice. So, using the true boolean field, it will trigger the conversion of the Sales Order to an Invoice. Can you provide me with instructions on how to do this?