Final update on the 'find an open-source and self-hosted solution' to create invoices:
I ended up installing and using odoo.
You can install only the modules you need and is based on Python Django which I feel way more comfortable on dealing with. I'll probably talk about it on one of the next Ubuntu PT Podcasts.
CC @Pedro @diogo @tcarrondo
mastodon.otherreality.net is one server in the network