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.

113 lines
4.9 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="loan_subscription_confirmation" model="mail.template">
  7. <field name="name">Loan Subscription Confirmation Email</field>
  8. <field name="email_from">${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}</field>
  9. <field name="subject">${object.company_id.name} Loan subscription confirmation (Ref ${object.loan_issue_id.name or 'n/a'})</field>
  10. <field name="email_to">${object.partner_id.email}</field>
  11. <field name="reply_to">${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}</field>
  12. <field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/>
  13. <field name="auto_delete" eval="True"/>
  14. <field name="lang">${object.partner_id.lang}</field>
  15. <field name="easy_my_coop" eval="True"/>
  16. <field name="body_html"><![CDATA[
  17. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  18. <p>Hello ${object.partner_id.name},</p>
  19. <p>Your request will be soon processed by our team. If all the provided info are correct you will soon receive the payment information in another email</p>
  20. <br/>
  21. <p>If you have any question, do not hesitate to contact us.</p>
  22. <br/>
  23. <p>Sustainably your,</p>
  24. <p>${object.company_id.name}.</p>
  25. % if object.company_id.street:
  26. ${object.company_id.street}
  27. % endif
  28. % if object.company_id.street2:
  29. ${object.company_id.street2}<br/>
  30. % endif
  31. % if object.company_id.city or object.company_id.zip:
  32. ${object.company_id.zip} ${object.company_id.city}<br/>
  33. % endif
  34. % if object.company_id.country_id:
  35. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  36. % endif
  37. % if object.company_id.phone:
  38. Phone:&nbsp; ${object.company_id.phone}
  39. % endif
  40. % if object.company_id.website:
  41. <div>
  42. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  43. </div>
  44. %endif
  45. <div>
  46. <img src=${object.company_id.logo_url}>
  47. </div>
  48. </div>
  49. ]]></field>
  50. </record>
  51. <!--Request the payment of the subscribed loan issue -->
  52. <record id="loan_issue_payment_request" model="mail.template">
  53. <field name="name">Loan Issue Payment Request - Send by Email</field>
  54. <field name="email_from">${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}</field>
  55. <field name="subject">${object.company_id.name} Payment request (Ref ${object.loan_issue_id.name or 'n/a'})</field>
  56. <field name="partner_to">${object.partner_id.id}</field>
  57. <field name="reply_to">${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}</field>
  58. <field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/>
  59. <field name="auto_delete" eval="True"/>
  60. <field name="lang">${object.partner_id.lang}</field>
  61. <field name="easy_my_coop" eval="True"/>
  62. <field name="body_html"><![CDATA[
  63. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  64. <p>Hello ${object.partner_id.name},</p>
  65. <p>Find here after the necessary information for the payment. We kindly remind you that your subscription will be effective only once we received the payment.</p>
  66. <p>Amount: ${object.amount} ${object.loan_issue_id.company_currency_id.symbol}</p>
  67. <p>Account number: ${object.company_id.bank_ids[0].sanitized_acc_number}</p>
  68. <p>Communication: ${object.loan_issue_id.name} + ${object.partner_id.name}</p>
  69. <p>Sustainably your,</p>
  70. <p>${object.company_id.name}.</p>
  71. % if object.company_id.street:
  72. ${object.company_id.street}
  73. % endif
  74. % if object.company_id.street2:
  75. ${object.company_id.street2}<br/>
  76. % endif
  77. % if object.company_id.city or object.company_id.zip:
  78. ${object.company_id.zip} ${object.company_id.city}<br/>
  79. % endif
  80. % if object.company_id.country_id:
  81. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  82. % endif
  83. % if object.company_id.phone:
  84. Phone:&nbsp; ${object.company_id.phone}
  85. % endif
  86. % if object.company_id.website:
  87. <div>
  88. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  89. </div>
  90. %endif
  91. <div>
  92. <img src=${object.company_id.logo_url}>
  93. </div>
  94. </div>
  95. ]]></field>
  96. </record>
  97. </data>
  98. </odoo>