Yes you can. If you have a department in Teamleader that is located in Spain or Italy, this option will appear automatically when creating an invoice for one of those departments.
Go to ‘Invoices’
Create a new invoice
Select the right department
The option for IRPF/withholding taxes will appear
The percentages are the correct ones issued by either Spain or Italy (depending on which department you chose)
Select the right tax rate
Fill in the other details of your invoice
Teamleader will calculate the tax automatically
Save (and book) your invoice
The PDF of the invoice will also contain the mention of the tax.