Mailing the story:
How to automatically create OpenDocument invoices without OpenOffice
Here is a script takes an Opendocument template and fills it with data from a plain text file (which could be generated on the fly by querying a database or in many other ways), creating an OpenDocument invoice ready to be printed or sent via email.