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.

443 lines
18 KiB

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