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.

497 lines
19 KiB

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