The Portuguese tax authority (Autoridade Tributaria e Adueneira) have been moving towards the mandatory use of a QR code and unique document code on invoices since at least 2020. While optional use of these has been recommended for some time, the mandate has been postponed several times. The mandatory use of a QR code on paper or signed PDF invoices became mandatory in January 2022.
Source blogs.opentext.com