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.

381 lines
17 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. <!--Request to release capital Email template -->
  7. <record id="email_template_release_capital" model="mail.template">
  8. <field name="name">Request to Release Capital - Send by Email</field>
  9. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  10. <field name="subject">${object.company_id.name} Request to Release Capital (Ref ${object.number or 'n/a'})</field>
  11. <field name="partner_to">${object.partner_id.id}</field>
  12. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  13. <field name="model_id" ref="account.model_account_invoice"/>
  14. <field name="auto_delete" eval="True"/>
  15. <field name="report_template" ref="action_cooperator_invoices"/>
  16. <field name="report_name">${(object.number or '').replace('/','_')}_${object.state == 'draft' and 'draft' or ''}</field>
  17. <field name="lang">${object.partner_id.lang}</field>
  18. <field name="body_html"><![CDATA[
  19. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  20. <p>Hello ${object.partner_id.name},</p>
  21. <p>You will find in attachment all the necessary information for the payment. We kindly remind you that your subscription will be effective only once we received the payment.</p>
  22. <p>Do not forget to add the structured communication to the payment.</p>
  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_web}>
  47. </div>
  48. </div>
  49. ]]></field>
  50. </record>
  51. <record id="email_template_confirmation" model="mail.template">
  52. <field name="name">Confirmation Email</field>
  53. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  54. <field name="subject">Subscription request confirmation</field>
  55. <field name="email_to">${object.email}</field>
  56. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  57. <field name="model_id" ref="model_subscription_request"/>
  58. <field name="auto_delete" eval="True"/>
  59. <field name="lang">${object.lang}</field>
  60. <field name="body_html"><![CDATA[
  61. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  62. <p>Hello ${object.name},</p>
  63. <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>
  64. <br/>
  65. <p>If you have any question, do not hesitate to contact us.</p>
  66. <br/>
  67. <p>Sustainably your,</p>
  68. <p>${object.company_id.name}.</p>
  69. % if object.company_id.street:
  70. ${object.company_id.street}
  71. % endif
  72. % if object.company_id.street2:
  73. ${object.company_id.street2}<br/>
  74. % endif
  75. % if object.company_id.city or object.company_id.zip:
  76. ${object.company_id.zip} ${object.company_id.city}<br/>
  77. % endif
  78. % if object.company_id.country_id:
  79. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  80. % endif
  81. % if object.company_id.phone:
  82. Phone:&nbsp; ${object.company_id.phone}
  83. % endif
  84. % if object.company_id.website:
  85. <div>
  86. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  87. </div>
  88. %endif
  89. <div>
  90. <img src=${object.company_id.logo_web}>
  91. </div>
  92. </div>
  93. ]]></field>
  94. </record>
  95. <record id="email_template_confirmation_company" model="mail.template">
  96. <field name="name">Company Confirmation Email</field>
  97. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  98. <field name="subject">Subscription request confirmation</field>
  99. <field name="email_to">${object.email},${object.company_email}</field>
  100. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  101. <field name="model_id" ref="model_subscription_request"/>
  102. <field name="auto_delete" eval="True"/>
  103. <field name="lang">${object.lang}</field>
  104. <field name="body_html"><![CDATA[
  105. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  106. <p>Hello ${object.name},</p>
  107. <p>We have received your subscription request for ${object.company_name} ${object.company_type}. Thank you for your support.</p>
  108. <p>Your request will be soon processed by our team "gestion et participation des membres". If all the provided info are correct you will soon receive the payment information in another email</p>
  109. <br/>
  110. <p>If you have any question, do not hesitate to contact us.</p>
  111. <br/>
  112. <p>Sustainably your,</p>
  113. <p>${object.company_id.name}.</p>
  114. % if object.company_id.street:
  115. ${object.company_id.street}
  116. % endif
  117. % if object.company_id.street2:
  118. ${object.company_id.street2}<br/>
  119. % endif
  120. % if object.company_id.city or object.company_id.zip:
  121. ${object.company_id.zip} ${object.company_id.city}<br/>
  122. % endif
  123. % if object.company_id.country_id:
  124. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  125. % endif
  126. % if object.company_id.phone:
  127. Phone:&nbsp; ${object.company_id.phone}
  128. % endif
  129. % if object.company_id.website:
  130. <div>
  131. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  132. </div>
  133. %endif
  134. <div>
  135. <img src=${object.company_id.logo_web}>
  136. </div>
  137. </div>
  138. ]]></field>
  139. </record>
  140. <record id="email_template_certificat" model="mail.template">
  141. <field name="name">Payment Received Confirmation - Send By Email</field>
  142. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  143. <field name="subject">Payment Received Confirmation</field>
  144. <!-- <field name="email_recipients">${object.partner_id.id}</field> -->
  145. <field name="partner_to">${object.id}</field>
  146. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  147. <field name="model_id" ref="model_res_partner"/>
  148. <field name="auto_delete" eval="True"/>
  149. <field name="report_template" ref="action_cooperator_report_certificat"/>
  150. <field name="report_name">Certificat ${(object.cooperator_register_number or '')}</field>
  151. <field name="lang">${object.lang}</field>
  152. <field name="body_html"><![CDATA[
  153. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  154. <p>Hello ${object.name},</p>
  155. <p>We confirm the reception of you payment. You are now shareholder of our cooperative</p>
  156. <br/>
  157. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  158. <p>Thank you for choosing ${object.company_id.name or 'us'}!</p>
  159. <br/>
  160. <p>Sustainably your,</p>
  161. <p>${object.company_id.name}.</p>
  162. % if object.company_id.street:
  163. ${object.company_id.street}
  164. % endif
  165. % if object.company_id.street2:
  166. ${object.company_id.street2}<br/>
  167. % endif
  168. % if object.company_id.city or object.company_id.zip:
  169. ${object.company_id.zip} ${object.company_id.city}<br/>
  170. % endif
  171. % if object.company_id.country_id:
  172. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  173. % endif
  174. % if object.company_id.phone:
  175. Phone:&nbsp; ${object.company_id.phone}
  176. % endif
  177. % if object.company_id.website:
  178. <div>
  179. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  180. </div>
  181. %endif
  182. <div>
  183. <img src=${object.company_id.logo_web}>
  184. </div>
  185. </div>
  186. ]]></field>
  187. </record>
  188. <record id="email_template_certificat_increase" model="mail.template">
  189. <field name="name">Share Increase - Payment Received Confirmation - Send By Email</field>
  190. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  191. <field name="subject">Payment Received Confirmation</field>
  192. <field name="partner_to">${object.id}</field>
  193. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  194. <field name="model_id" ref="model_res_partner"/>
  195. <field name="auto_delete" eval="True"/>
  196. <field name="report_template" ref="action_cooperator_report_certificat"/>
  197. <field name="report_name">Certificat ${(object.cooperator_register_number or '')}</field>
  198. <field name="lang">${object.lang}</field>
  199. <field name="body_html"><![CDATA[
  200. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  201. <p>Hello ${object.name},</p>
  202. <p>We confirm the reception of you payment for the new share(s) you have taken.</p>
  203. <br/>
  204. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  205. <p>Thank you for trusting ${object.company_id.name or 'us'}!</p>
  206. <br/>
  207. <p>Sustainably your,</p>
  208. <p>${object.company_id.name}.</p>
  209. % if object.company_id.street:
  210. ${object.company_id.street}
  211. % endif
  212. % if object.company_id.street2:
  213. ${object.company_id.street2}<br/>
  214. % endif
  215. % if object.company_id.city or object.company_id.zip:
  216. ${object.company_id.zip} ${object.company_id.city}<br/>
  217. % endif
  218. % if object.company_id.country_id:
  219. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  220. % endif
  221. % if object.company_id.phone:
  222. Phone:&nbsp; ${object.company_id.phone}
  223. % endif
  224. % if object.company_id.website:
  225. <div>
  226. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  227. </div>
  228. %endif
  229. <div>
  230. <img src=${object.company_id.logo_web}>
  231. </div>
  232. </div>
  233. ]]></field>
  234. </record>
  235. <record id="email_template_share_transfer" model="mail.template">
  236. <field name="name">Share transfer - Send By Email</field>
  237. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  238. <field name="subject">Share transfert</field>
  239. <field name="partner_to">${object.id}</field>
  240. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  241. <field name="model_id" ref="model_res_partner"/>
  242. <field name="auto_delete" eval="True"/>
  243. <field name="report_template" ref="action_cooperator_report_certificat"/>
  244. <field name="report_name">Certificat ${(object.cooperator_register_number or '')}</field>
  245. <field name="lang">${object.lang}</field>
  246. <field name="body_html"><![CDATA[
  247. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  248. <p>Hello ${object.name},</p>
  249. <p>We confirm you that the shares have been transfered to you. If you was not already cooperator, you are now shareholder of our cooperative</p>
  250. <br/>
  251. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  252. <p>Thank you for choosing ${object.company_id.name or 'us'}!</p>
  253. <br/>
  254. <p>Sustainably your,</p>
  255. <p>${object.company_id.name}.</p>
  256. % if object.company_id.street:
  257. ${object.company_id.street}
  258. % endif
  259. % if object.company_id.street2:
  260. ${object.company_id.street2}<br/>
  261. % endif
  262. % if object.company_id.city or object.company_id.zip:
  263. ${object.company_id.zip} ${object.company_id.city}<br/>
  264. % endif
  265. % if object.company_id.country_id:
  266. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  267. % endif
  268. % if object.company_id.phone:
  269. Phone:&nbsp; ${object.company_id.phone}
  270. % endif
  271. % if object.company_id.website:
  272. <div>
  273. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  274. </div>
  275. %endif
  276. <div>
  277. <img src=${object.company_id.logo_web}>
  278. </div>
  279. </div>
  280. ]]></field>
  281. </record>
  282. <record id="email_template_share_update" model="mail.template">
  283. <field name="name">Share update - Send By Email</field>
  284. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  285. <field name="subject">Share update</field>
  286. <field name="partner_to">${object.id}</field>
  287. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  288. <field name="model_id" ref="model_res_partner"/>
  289. <field name="auto_delete" eval="True"/>
  290. <field name="report_template" ref="action_cooperator_report_certificat"/>
  291. <field name="report_name">Certificat ${(object.cooperator_register_number or '')}</field>
  292. <field name="lang">${object.lang}</field>
  293. <field name="body_html"><![CDATA[
  294. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  295. <p>Hello ${object.name},</p>
  296. <p>We confirm you that the adaptation on shares portfolio has been succesfully performed. Your cooperator certificate has been adapted accordingly</p>
  297. <br/>
  298. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  299. <p>Thank you for choosing ${object.company_id.name or 'us'}!</p>
  300. <br/>
  301. <p>Sustainably your,</p>
  302. <p>${object.company_id.name}.</p>
  303. % if object.company_id.street:
  304. ${object.company_id.street}
  305. % endif
  306. % if object.company_id.street2:
  307. ${object.company_id.street2}<br/>
  308. % endif
  309. % if object.company_id.city or object.company_id.zip:
  310. ${object.company_id.zip} ${object.company_id.city}<br/>
  311. % endif
  312. % if object.company_id.country_id:
  313. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  314. % endif
  315. % if object.company_id.phone:
  316. Phone:&nbsp; ${object.company_id.phone}
  317. % endif
  318. % if object.company_id.website:
  319. <div>
  320. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  321. </div>
  322. %endif
  323. <div>
  324. <img src=${object.company_id.logo_web}>
  325. </div>
  326. </div>
  327. ]]></field>
  328. </record>
  329. </data>
  330. </odoo>