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.

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