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.

436 lines
19 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_url}>
  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_url}>
  91. </div>
  92. </div>
  93. ]]></field>
  94. </record>
  95. <record id="email_template_waiting_list" model="mail.template">
  96. <field name="name">Waiting List 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 added on waiting list. </field>
  99. <field name="email_to">${object.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>Thank you for your subscription request. There are currently no project to raise funds for, thus we added it on waiting list.
  108. We will contact you as soon as the subscription requests are re-opened.
  109. </p>
  110. <br/>
  111. <p>If you have any question, do not hesitate to contact us.</p>
  112. <br/>
  113. <p>Sustainably yours,</p>
  114. <p>${object.company_id.name}.</p>
  115. % if object.company_id.street:
  116. ${object.company_id.street}
  117. % endif
  118. % if object.company_id.street2:
  119. ${object.company_id.street2}<br/>
  120. % endif
  121. % if object.company_id.city or object.company_id.zip:
  122. ${object.company_id.zip} ${object.company_id.city}<br/>
  123. % endif
  124. % if object.company_id.country_id:
  125. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  126. % endif
  127. % if object.company_id.phone:
  128. Phone:&nbsp; ${object.company_id.phone}
  129. % endif
  130. % if object.company_id.website:
  131. <div>
  132. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  133. </div>
  134. %endif
  135. <div>
  136. <img src=${object.company_id.logo_url}>
  137. </div>
  138. </div>
  139. ]]></field>
  140. </record>
  141. <record id="email_template_confirmation_company" model="mail.template">
  142. <field name="name">Company Confirmation Email</field>
  143. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  144. <field name="subject">Subscription request confirmation</field>
  145. <field name="email_to">${object.email},${object.company_email}</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_subscription_request"/>
  148. <field name="auto_delete" eval="True"/>
  149. <field name="lang">${object.lang}</field>
  150. <field name="body_html"><![CDATA[
  151. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  152. <p>Hello ${object.name},</p>
  153. <p>We have received your subscription request for ${object.company_id.name}. Thank you for your support.</p>
  154. <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>
  155. <br/>
  156. <p>If you have any question, do not hesitate to contact us.</p>
  157. <br/>
  158. <p>Sustainably your,</p>
  159. <p>${object.company_id.name}.</p>
  160. % if object.company_id.street:
  161. ${object.company_id.street}
  162. % endif
  163. % if object.company_id.street2:
  164. ${object.company_id.street2}<br/>
  165. % endif
  166. % if object.company_id.city or object.company_id.zip:
  167. ${object.company_id.zip} ${object.company_id.city}<br/>
  168. % endif
  169. % if object.company_id.country_id:
  170. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  171. % endif
  172. % if object.company_id.phone:
  173. Phone:&nbsp; ${object.company_id.phone}
  174. % endif
  175. % if object.company_id.website:
  176. <div>
  177. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  178. </div>
  179. %endif
  180. <div>
  181. <img src=${object.company_id.logo_url}>
  182. </div>
  183. </div>
  184. ]]></field>
  185. </record>
  186. <record id="email_template_certificat" model="mail.template">
  187. <field name="name">Payment Received Confirmation - Send By Email</field>
  188. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  189. <field name="subject">Payment Received Confirmation</field>
  190. <!-- <field name="email_recipients">${object.partner_id.id}</field> -->
  191. <field name="partner_to">${object.id}</field>
  192. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  193. <field name="model_id" ref="model_res_partner"/>
  194. <field name="auto_delete" eval="True"/>
  195. <field name="report_template" ref="action_cooperator_report_certificat"/>
  196. <field name="report_name">Certificat ${(object.cooperator_register_number or '')}</field>
  197. <field name="lang">${object.lang}</field>
  198. <field name="body_html"><![CDATA[
  199. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  200. <p>Hello ${object.name},</p>
  201. <p>We confirm the reception of you payment. You are now shareholder of our cooperative</p>
  202. <br/>
  203. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  204. <p>Thank you for choosing ${object.company_id.name or 'us'}!</p>
  205. <br/>
  206. <p>Sustainably your,</p>
  207. <p>${object.company_id.name}.</p>
  208. % if object.company_id.street:
  209. ${object.company_id.street}
  210. % endif
  211. % if object.company_id.street2:
  212. ${object.company_id.street2}<br/>
  213. % endif
  214. % if object.company_id.city or object.company_id.zip:
  215. ${object.company_id.zip} ${object.company_id.city}<br/>
  216. % endif
  217. % if object.company_id.country_id:
  218. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  219. % endif
  220. % if object.company_id.phone:
  221. Phone:&nbsp; ${object.company_id.phone}
  222. % endif
  223. % if object.company_id.website:
  224. <div>
  225. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  226. </div>
  227. %endif
  228. <div>
  229. <img src=${object.company_id.logo_url}>
  230. </div>
  231. </div>
  232. ]]></field>
  233. </record>
  234. <record id="email_template_certificat_increase" model="mail.template">
  235. <field name="name">Share Increase - Payment Received Confirmation - Send By Email</field>
  236. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  237. <field name="subject">Payment Received Confirmation</field>
  238. <field name="partner_to">${object.id}</field>
  239. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  240. <field name="model_id" ref="model_res_partner"/>
  241. <field name="auto_delete" eval="True"/>
  242. <field name="report_template" ref="action_cooperator_report_certificat"/>
  243. <field name="report_name">Certificat ${(object.cooperator_register_number or '')}</field>
  244. <field name="lang">${object.lang}</field>
  245. <field name="body_html"><![CDATA[
  246. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  247. <p>Hello ${object.name},</p>
  248. <p>We confirm the reception of you payment for the new share(s) you have taken.</p>
  249. <br/>
  250. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  251. <p>Thank you for trusting ${object.company_id.name or 'us'}!</p>
  252. <br/>
  253. <p>Sustainably your,</p>
  254. <p>${object.company_id.name}.</p>
  255. % if object.company_id.street:
  256. ${object.company_id.street}
  257. % endif
  258. % if object.company_id.street2:
  259. ${object.company_id.street2}<br/>
  260. % endif
  261. % if object.company_id.city or object.company_id.zip:
  262. ${object.company_id.zip} ${object.company_id.city}<br/>
  263. % endif
  264. % if object.company_id.country_id:
  265. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  266. % endif
  267. % if object.company_id.phone:
  268. Phone:&nbsp; ${object.company_id.phone}
  269. % endif
  270. % if object.company_id.website:
  271. <div>
  272. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  273. </div>
  274. %endif
  275. <div>
  276. <img src=${object.company_id.logo_url}>
  277. </div>
  278. </div>
  279. ]]></field>
  280. </record>
  281. <record id="email_template_share_transfer" model="mail.template">
  282. <field name="name">Share transfer - Send By Email</field>
  283. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  284. <field name="subject">Share transfert</field>
  285. <field name="partner_to">${object.id}</field>
  286. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  287. <field name="model_id" ref="model_res_partner"/>
  288. <field name="auto_delete" eval="True"/>
  289. <field name="report_template" ref="action_cooperator_report_certificat"/>
  290. <field name="report_name">Certificat ${(object.cooperator_register_number or '')}</field>
  291. <field name="lang">${object.lang}</field>
  292. <field name="body_html"><![CDATA[
  293. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  294. <p>Hello ${object.name},</p>
  295. <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>
  296. <br/>
  297. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  298. <p>Thank you for choosing ${object.company_id.name or 'us'}!</p>
  299. <br/>
  300. <p>Sustainably your,</p>
  301. <p>${object.company_id.name}.</p>
  302. % if object.company_id.street:
  303. ${object.company_id.street}
  304. % endif
  305. % if object.company_id.street2:
  306. ${object.company_id.street2}<br/>
  307. % endif
  308. % if object.company_id.city or object.company_id.zip:
  309. ${object.company_id.zip} ${object.company_id.city}<br/>
  310. % endif
  311. % if object.company_id.country_id:
  312. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  313. % endif
  314. % if object.company_id.phone:
  315. Phone:&nbsp; ${object.company_id.phone}
  316. % endif
  317. % if object.company_id.website:
  318. <div>
  319. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  320. </div>
  321. %endif
  322. <div>
  323. <img src=${object.company_id.logo_url}>
  324. </div>
  325. </div>
  326. ]]></field>
  327. </record>
  328. <record id="email_template_share_update" model="mail.template">
  329. <field name="name">Share update - Send By Email</field>
  330. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  331. <field name="subject">Share update</field>
  332. <field name="partner_to">${object.id}</field>
  333. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  334. <field name="model_id" ref="model_res_partner"/>
  335. <field name="auto_delete" eval="True"/>
  336. <field name="report_template" ref="action_cooperator_report_certificat"/>
  337. <field name="report_name">Certificat ${(object.cooperator_register_number or '')}</field>
  338. <field name="lang">${object.lang}</field>
  339. <field name="body_html"><![CDATA[
  340. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  341. <p>Hello ${object.name},</p>
  342. <p>We confirm you that the adaptation on shares portfolio has been succesfully performed. Your cooperator certificate has been adapted accordingly</p>
  343. <br/>
  344. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  345. <p>Thank you for choosing ${object.company_id.name or 'us'}!</p>
  346. <br/>
  347. <p>Sustainably your,</p>
  348. <p>${object.company_id.name}.</p>
  349. % if object.company_id.street:
  350. ${object.company_id.street}
  351. % endif
  352. % if object.company_id.street2:
  353. ${object.company_id.street2}<br/>
  354. % endif
  355. % if object.company_id.city or object.company_id.zip:
  356. ${object.company_id.zip} ${object.company_id.city}<br/>
  357. % endif
  358. % if object.company_id.country_id:
  359. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  360. % endif
  361. % if object.company_id.phone:
  362. Phone:&nbsp; ${object.company_id.phone}
  363. % endif
  364. % if object.company_id.website:
  365. <div>
  366. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  367. </div>
  368. %endif
  369. <div>
  370. <img src=${object.company_id.logo_url}>
  371. </div>
  372. </div>
  373. ]]></field>
  374. </record>
  375. </data>
  376. </odoo>