Solution
- Creation of a new boolean type field in the customer invoices.
- Create an automated action with the following configuration (debug mode must be activated).
Where:
- Status must be published
- Created by OdooBot
- Customer invoice journal
- Field created in point one is equal to false
- Create a subscription and the next generated invoice will be in draft status. To confirm the invoice, the boolean created in point 1 has to be true for it to be confirmed.