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.

380 lines
17 KiB

  1. <openerp>
  2. <!-- Mail template are declared in a NOUPDATE block
  3. so users can freely customize/delete them -->
  4. <data noupdate="1">
  5. <!--Request to release capital Email template -->
  6. <record id="email_template_release_capital" model="mail.template">
  7. <field name="name">Request to Release Capital - Send by Email</field>
  8. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  9. <field name="subject">${object.company_id.name} Request to Release Capital (Ref ${object.number or 'n/a'})</field>
  10. <field name="partner_to">${object.partner_id.id}</field>
  11. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  12. <field name="model_id" ref="account.model_account_invoice"/>
  13. <field name="auto_delete" eval="True"/>
  14. <field name="report_template" ref="action_cooperator_invoices"/>
  15. <field name="report_name">${(object.number or '').replace('/','_')}_${object.state == 'draft' and 'draft' or ''}</field>
  16. <field name="lang">${object.partner_id.lang}</field>
  17. <field name="body_html"><![CDATA[
  18. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  19. <p>Hello ${object.partner_id.name},</p>
  20. <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>
  21. <p>Do not forget to add the structured communication to the payment.</p>
  22. <p>Sustainably your,</p>
  23. <p>${object.company_id.name}.</p>
  24. % if object.company_id.street:
  25. ${object.company_id.street}
  26. % endif
  27. % if object.company_id.street2:
  28. ${object.company_id.street2}<br/>
  29. % endif
  30. % if object.company_id.city or object.company_id.zip:
  31. ${object.company_id.zip} ${object.company_id.city}<br/>
  32. % endif
  33. % if object.company_id.country_id:
  34. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  35. % endif
  36. % if object.company_id.phone:
  37. Phone:&nbsp; ${object.company_id.phone}
  38. % endif
  39. % if object.company_id.website:
  40. <div>
  41. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  42. </div>
  43. %endif
  44. <div>
  45. <img src=${object.company_id.logo_web}>
  46. </div>
  47. </div>
  48. ]]></field>
  49. </record>
  50. <record id="email_template_confirmation" model="mail.template">
  51. <field name="name">Confirmation Email</field>
  52. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  53. <field name="subject">Subscription request confirmation</field>
  54. <field name="email_to">${object.email}</field>
  55. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  56. <field name="model_id" ref="model_subscription_request"/>
  57. <field name="auto_delete" eval="True"/>
  58. <field name="lang">${object.lang}</field>
  59. <field name="body_html"><![CDATA[
  60. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  61. <p>Hello ${object.name},</p>
  62. <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>
  63. <br/>
  64. <p>If you have any question, do not hesitate to contact us.</p>
  65. <br/>
  66. <p>Sustainably your,</p>
  67. <p>${object.company_id.name}.</p>
  68. % if object.company_id.street:
  69. ${object.company_id.street}
  70. % endif
  71. % if object.company_id.street2:
  72. ${object.company_id.street2}<br/>
  73. % endif
  74. % if object.company_id.city or object.company_id.zip:
  75. ${object.company_id.zip} ${object.company_id.city}<br/>
  76. % endif
  77. % if object.company_id.country_id:
  78. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  79. % endif
  80. % if object.company_id.phone:
  81. Phone:&nbsp; ${object.company_id.phone}
  82. % endif
  83. % if object.company_id.website:
  84. <div>
  85. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  86. </div>
  87. %endif
  88. <div>
  89. <img src=${object.company_id.logo_web}>
  90. </div>
  91. </div>
  92. ]]></field>
  93. </record>
  94. <record id="email_template_confirmation_company" model="mail.template">
  95. <field name="name">Company Confirmation Email</field>
  96. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  97. <field name="subject">Subscription request confirmation</field>
  98. <field name="email_to">${object.email},${object.company_email}</field>
  99. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  100. <field name="model_id" ref="model_subscription_request"/>
  101. <field name="auto_delete" eval="True"/>
  102. <field name="lang">${object.lang}</field>
  103. <field name="body_html"><![CDATA[
  104. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  105. <p>Hello ${object.name},</p>
  106. <p>We have received your subscription request for ${object.company_name} ${object.company_type}. Thank you for your support.</p>
  107. <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>
  108. <br/>
  109. <p>If you have any question, do not hesitate to contact us.</p>
  110. <br/>
  111. <p>Sustainably your,</p>
  112. <p>${object.company_id.name}.</p>
  113. % if object.company_id.street:
  114. ${object.company_id.street}
  115. % endif
  116. % if object.company_id.street2:
  117. ${object.company_id.street2}<br/>
  118. % endif
  119. % if object.company_id.city or object.company_id.zip:
  120. ${object.company_id.zip} ${object.company_id.city}<br/>
  121. % endif
  122. % if object.company_id.country_id:
  123. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  124. % endif
  125. % if object.company_id.phone:
  126. Phone:&nbsp; ${object.company_id.phone}
  127. % endif
  128. % if object.company_id.website:
  129. <div>
  130. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  131. </div>
  132. %endif
  133. <div>
  134. <img src=${object.company_id.logo_web}>
  135. </div>
  136. </div>
  137. ]]></field>
  138. </record>
  139. <record id="email_template_certificat" model="mail.template">
  140. <field name="name">Payment Received Confirmation - Send By Email</field>
  141. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  142. <field name="subject">Payment Received Confirmation</field>
  143. <!-- <field name="email_recipients">${object.partner_id.id}</field> -->
  144. <field name="partner_to">${object.id}</field>
  145. <field name="reply_to">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  146. <field name="model_id" ref="model_res_partner"/>
  147. <field name="auto_delete" eval="True"/>
  148. <field name="report_template" ref="action_cooperator_report_certificat"/>
  149. <field name="report_name">Certificat ${(object.cooperator_register_number or '')}</field>
  150. <field name="lang">${object.lang}</field>
  151. <field name="body_html"><![CDATA[
  152. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  153. <p>Hello ${object.name},</p>
  154. <p>We confirm the reception of you payment. You are now shareholder of our cooperative</p>
  155. <br/>
  156. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  157. <p>Thank you for choosing ${object.company_id.name or 'us'}!</p>
  158. <br/>
  159. <p>Sustainably your,</p>
  160. <p>${object.company_id.name}.</p>
  161. % if object.company_id.street:
  162. ${object.company_id.street}
  163. % endif
  164. % if object.company_id.street2:
  165. ${object.company_id.street2}<br/>
  166. % endif
  167. % if object.company_id.city or object.company_id.zip:
  168. ${object.company_id.zip} ${object.company_id.city}<br/>
  169. % endif
  170. % if object.company_id.country_id:
  171. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  172. % endif
  173. % if object.company_id.phone:
  174. Phone:&nbsp; ${object.company_id.phone}
  175. % endif
  176. % if object.company_id.website:
  177. <div>
  178. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  179. </div>
  180. %endif
  181. <div>
  182. <img src=${object.company_id.logo_web}>
  183. </div>
  184. </div>
  185. ]]></field>
  186. </record>
  187. <record id="email_template_certificat_increase" model="mail.template">
  188. <field name="name">Share Increase - Payment Received Confirmation - Send By Email</field>
  189. <field name="email_from">${(object.company_id.coop_email_contact or object.user_id.email)|safe}</field>
  190. <field name="subject">Payment Received Confirmation</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 for the new share(s) you have taken.</p>
  202. <br/>
  203. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  204. <p>Thank you for trusting ${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_web}>
  230. </div>
  231. </div>
  232. ]]></field>
  233. </record>
  234. <record id="email_template_share_transfer" model="mail.template">
  235. <field name="name">Share transfer - 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">Share transfert</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 you that the shares have been transfered to you. If you was not already cooperator, you are now shareholder of our cooperative</p>
  249. <br/>
  250. <p>Find in attachment your ${object.company_id.name} certificate.</p>
  251. <p>Thank you for choosing ${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_web}>
  277. </div>
  278. </div>
  279. ]]></field>
  280. </record>
  281. <record id="email_template_share_update" model="mail.template">
  282. <field name="name">Share update - 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 update</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 adaptation on shares portfolio has been succesfully performed. Your cooperator certificate has been adapted accordingly</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_web}>
  324. </div>
  325. </div>
  326. ]]></field>
  327. </record>
  328. </data>
  329. </openerp>