Uniformize code:
New: Call to hook after generation is also done into odt.
Fix: Missing hook before save.