You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

24 lines
1.3 KiB

  1. <?xml version="1.0" ?>
  2. <openerp>
  3. <!-- Mail template are declared in a NOUPDATE block
  4. so users can freely customize/delete them -->
  5. <data noupdate="1">
  6. <record id="email_template_hours_block" model="email.template">
  7. <field name="name">Hours Block - Send by Email</field>
  8. <field name="email_from">${(object.user_id.email or object.company_id.email or 'noreply@localhost')|safe}</field>
  9. <field name="subject">${object.company_id.name} Hours Block (Ref ${object.number or 'n/a'})</field>
  10. <field name="email_recipients">${object.partner_id.id}</field>
  11. <field name="model_id" ref="analytic_hours_block.model_account_hours_block"/>
  12. <field name="auto_delete" eval="True"/>
  13. <field name="report_template" ref="block_hours_report"/>
  14. <field name="report_name">Hours_Block_${(object.number or '').replace('/','_')}_${object.state == 'draft' and 'draft' or ''}</field>
  15. <field name="lang">${object.partner_id.lang}</field>
  16. <field name="body_html"><![CDATA[
  17. <p>Hello ${object.partner_id.name},</p>
  18. <p>Please find attached your Hours Block Report.</p>
  19. <p>Best regards.</p>
  20. ]]></field>
  21. </record>
  22. </data>
  23. </openerp>