Very easy to do. While in your pit, select Pit Strategy and create a new one. What settings you end up setting don't matter, so just save it in a new slot and make sure you make that your active strategy before backing out to the pit main menu.
Once you've done that, pit however you can during a race (FP and Qualifying sessions also count) and the achievement will pop then.
See how you can unlock the following achievement at the same time: