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.

62 lines
2.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  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_tax_shelter_certificate"
  7. model="mail.template">
  8. <field name="name">Tax Shelter Certificate - Send By Email</field>
  9. <field name="email_from">
  10. ${(object.company_id.coop_email_contact or object.user_id.email)|safe}
  11. </field>
  12. <field name="subject">Tax Shelter Certificate</field>
  13. <field name="partner_to">${object.partner_id.id}</field>
  14. <field name="reply_to">
  15. ${(object.company_id.coop_email_contact or object.user_id.email)|safe}
  16. </field>
  17. <field name="model_id" ref="model_tax_shelter_certificate"/>
  18. <field name="auto_delete" eval="True"/>
  19. <field name="lang">${object.partner_id.lang}</field>
  20. <field name="easy_my_coop" eval="True"/>
  21. <field name="body_html"><![CDATA[
  22. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  23. <p>Hello ${object.partner_id.name},</p>
  24. <p>You have subscribed to some shares of ${object.company_id.name} on ${object.declaration_id.fiscal_year}.
  25. You can benefit from the tax shelter, it means a tax reduction of ${object.declaration_id.tax_shelter_percentage} percent on the invested amount.
  26. For this you will find in attachments the documents certifying that you've suscribed to ${object.company_id.name} shares</p>
  27. <p>A dedicated FAQ is coming soon on ${object.company_id.website}.</p>
  28. <p>For any additional questions, please contact ${object.company_id.coop_email_contact}</p>
  29. <p>Sustainably your,</p>
  30. <p>${object.company_id.name}.</p>
  31. % if object.company_id.street:
  32. ${object.company_id.street}
  33. % endif
  34. % if object.company_id.street2:
  35. ${object.company_id.street2}<br/>
  36. % endif
  37. % if object.company_id.city or object.company_id.zip:
  38. ${object.company_id.zip} ${object.company_id.city}<br/>
  39. % endif
  40. % if object.company_id.country_id:
  41. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  42. % endif
  43. % if object.company_id.phone:
  44. Phone:&nbsp; ${object.company_id.phone}
  45. % endif
  46. % if object.company_id.website:
  47. <div>
  48. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  49. </div>
  50. %endif
  51. <div>
  52. <img src=${object.company_id.logo_web}>
  53. </div>
  54. </div>
  55. ]]></field>
  56. </record>
  57. </data>
  58. </odoo>