Sales - Estimates (+) - Check the box "Create a retainer invoice for this estimate automatically" - Enter a percentage to be collected as retainer from the total amount - Save and Send.
2. To send the Retainer: Go to Sales - Retainer Invoices - open - Edit - Save and send by mail to the customer.