If your landlord wishes to sell the property, he needs to give you a 12-month notice, according to Law No. 33 of 2008, Article 25c. This means that you’re eligible to stay for one year after the notice. If the apartment is sold during the term of your contract, the new landlord will be required to abide by the terms of your agreement with the previous landlord, as per Law 26 of 2007, Article 28, and give you a 12-month notification to vacate.
This notice period applies irrespective of when your lease expires and has to be served either via notary public or registered mail.