Fix template attachment must be declared after template
Merge pull request #20 from gisce/fix_order_template_attachment

Fix template attachment must be declared after template