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.

182 lines
12 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. <record id="email_template_loan_confirm_paid" model="mail.template">
  113. <field name="name">Loan Issue Confirm Payment Received - Send by Email</field>
  114. <field name="email_from">
  115. ${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}
  116. </field>
  117. <field name="subject">${object.company_id.name} Payment received (Ref ${object.loan_issue_id.name or 'n/a'})</field>
  118. <field name="partner_to">${object.partner_id.id}</field>
  119. <field name="reply_to">
  120. ${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}
  121. </field>
  122. <field name="model_id"
  123. ref="easy_my_coop_loan.model_loan_issue_line"/>
  124. <field name="auto_delete" eval="True"/>
  125. <field name="lang">${object.partner_id.lang}</field>
  126. <field name="easy_my_coop" eval="True"/>
  127. <field name="body_html"><![CDATA[
  128. <div style="font-size:13px;font-family: &quot;Lucica Grande&quot;, Ubuntu, Arial, Verdana, sans-serif; background-color: rgb(255, 255, 255);">
  129. <p style="margin:0px 0 1rem 0;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;color: rgb(34, 34, 34); font-size: 12px;">Bonjour ${object.partner_id.name},</p>
  130. <p style="margin:0px 0 1rem 0;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">Par la présente, nous vous confirmons que nous avons bien reçu de votre part le versement pour la souscription des obligations&nbsp;FinMip</p>
  131. <table class="table table-bordered" style="border-style:solid;margin:0 0 1rem 0;border-left-color:rgb(222, 226, 230);border-bottom-color:rgb(222, 226, 230);border-right-color:rgb(222, 226, 230);border-top-color:rgb(222, 226, 230);border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-width:1px;background-color:transparent;width:100%;border-collapse:collapse;"><tbody><tr><td style="border-style:solid;padding:0.75rem;border-left-color:rgb(222, 226, 230);border-bottom-color:rgb(222, 226, 230);border-right-color:rgb(222, 226, 230);border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:rgb(222, 226, 230);border-top-width:1px;vertical-align:top;"><span style="color: rgb(34, 34, 34); font-family: &quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif; font-size: 12px;">${object.partner_id.name}</span><br></td><td style="border-style:solid;padding:0.75rem;border-left-color:rgb(222, 226, 230);border-bottom-color:rgb(222, 226, 230);border-right-color:rgb(222, 226, 230);border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:rgb(222, 226, 230);border-top-width:1px;vertical-align:top;">${object.amount}<br></td><td style="border-style:solid;padding:0.75rem;border-left-color:rgb(222, 226, 230);border-bottom-color:rgb(222, 226, 230);border-right-color:rgb(222, 226, 230);border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:rgb(222, 226, 230);border-top-width:1px;vertical-align:top;">${object.loan_issue_id.display_name}<br></td><td style="border-style:solid;padding:0.75rem;border-left-color:rgb(222, 226, 230);border-bottom-color:rgb(222, 226, 230);border-right-color:rgb(222, 226, 230);border-left-width:1px;border-bottom-width:1px;border-right-width:1px;border-top-color:rgb(222, 226, 230);border-top-width:1px;vertical-align:top;">${object.quantity}<br></td></tr></tbody></table>
  132. <p style="margin:0px 0 1rem 0;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">Comme prévu dans la note d'information (reprise en attaché), ces obligations vous seront remboursées dans les 15 jours ouvrables qui suivent :</p><ul style="margin:0px 0 1rem 0;"><li><p style="margin:0px;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">&nbsp;p<span style="font-family: &quot;Lucica Grande&quot;, Ubuntu, Arial, Verdana, sans-serif; font-style: initial; font-variant-ligatures: initial; font-variant-caps: initial; font-weight: initial; text-align: inherit;">our les </span><span style="font-family: &quot;Lucica Grande&quot;, Ubuntu, Arial, Verdana, sans-serif; font-style: initial; font-variant-ligatures: initial; font-variant-caps: initial; text-align: inherit;"><b style="font-weight:bolder;">obligations à 5 ans</b></span><span style="font-family: &quot;Lucica Grande&quot;, Ubuntu, Arial, Verdana, sans-serif; font-style: initial; font-variant-ligatures: initial; font-variant-caps: initial; font-weight: initial; text-align: inherit;">, assorties d'un intérêt annuel brut de </span><span style="font-family: &quot;Lucica Grande&quot;, Ubuntu, Arial, Verdana, sans-serif; font-style: initial; font-variant-ligatures: initial; font-variant-caps: initial; text-align: inherit;"><b style="font-weight:bolder;">0,85%</b><b style="font-weight:bolder;"><br></b></span></p></li></ul><ul style="margin:0px 0 1rem 0;"><li><p style="margin:0px;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">pour les <b style="font-weight:bolder;">obligations à 10 ans</b>, assorties d'un intérêt annuel brut de<b style="font-weight:bolder;"> 1,25%</b><br></p></li></ul>
  133. <p style="margin:0px 0 1rem 0;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">Un précompte mobilier de 30 % sera retenu à la source sur les intérêts.</p>
  134. <p style="margin:0px 0 1rem 0;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">Si vous avez la moindre question, n'hésitez pas à nous contacter.</p><p style="margin:0px 0 1rem 0;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;">Nous vous remercions grandement pour votre soutien.</p>
  135. <p style="margin:0px 0 1rem 0;font-size:13px;font-family:&quot;Lucida Grande&quot;, Helvetica, Verdana, Arial, sans-serif;color: rgb(34, 34, 34); font-size: 12px;">
  136. <p>${object.company_id.name}.</p>
  137. % if object.company_id.street:
  138. ${object.company_id.street}
  139. % endif
  140. % if object.company_id.street2:
  141. ${object.company_id.street2}<br/>
  142. % endif
  143. % if object.company_id.city or object.company_id.zip:
  144. ${object.company_id.zip} ${object.company_id.city}<br/>
  145. % endif
  146. % if object.company_id.country_id:
  147. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  148. % endif
  149. % if object.company_id.phone:
  150. Phone:&nbsp; ${object.company_id.phone}
  151. % endif
  152. % if object.company_id.website:
  153. <div>
  154. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  155. </div>
  156. %endif
  157. ]]></field>
  158. </record>
  159. </data>
  160. </odoo>