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.

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