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.

112 lines
5.0 KiB

[ADD] bond and loan issues management [ADD] bond and loan issues management module skeleton [IMP] change increase menu sequence [IMP] add models, fields and views [IMP] add xml declaration in head of file [ADD] add easy_my_coop_loan_website - WIP [IMP] add access rights [IMP] this raise inconsistency so replace id by default_code. [IMP] change import openerp to odoo [IMP] add website loan module [FIX] put website display in loan [FIX] fix import [FIX] fix function [IMP] use correct name [IMP] make the loan and bond visible [IMP] add js, field and logic to set amount limit per subscription [IMP] remove dependency on recaptcha as user is logged to subscribe [IMP] add fields [IMP] save loan issue subscription still in WIP [IMP] remove alert pop up [IMP] add dependency to easy_my_coop_website [IMP] remove force send for sub request creation email notification [IMP] add mail templates [IMP] save subscription in the corresponding loan issue. add email notif [FIX] fix loan issue line view [FIX] add related field to loan issue. It is where the data stand [IMP] move term_view up [FIX] fix js error when false is returned [FIX] fix function when loan_issue_id in None [IMP] add actions and button [FIX] fix action [FIX] fix mail template [IMP] set noupdate=1 [IMP] change order [IMP] display loan issue lines on partner form [IMP] add loan view in partner form [IMP] add face value on loan issue and line add face value on loan issue and line. add as well the quantity and computation of the amount [FIX] missing id overriding values wasn't working [IMP] getting bond face value and setting it as step. [IMP] subscribed_amount computed field is the sum of the amount lines [IMP] allow a waiting payment to be cancelled [IMP] make field required [REFACT] move loan issue line code to dedicated file [IMP] add interest calculation and model [ADD] bond and loan issues management module skeleton [IMP] add models, fields and views [IMP] allow creation by hand [IMP] adding partner related field [IMP] put code in separate function [FIX] pass it to get method [IMP] routes consistent form [FIX] fix eof [FIX] GET is working for ajax call [IMP] website page for loan issue subscription
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. <!--<data>-->
  7. <record id="loan_subscription_confirmation" model="mail.template">
  8. <field name="name">Loan Subscription Confirmation Email</field>
  9. <field name="email_from">${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}</field>
  10. <field name="subject">${object.company_id.name} Loan subscription confirmation (Ref ${object.loan_issue_id.name or 'n/a'})</field>
  11. <field name="email_to">${object.partner_id.email}</field>
  12. <field name="reply_to">${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}</field>
  13. <field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/>
  14. <field name="auto_delete" eval="True"/>
  15. <field name="lang">${object.partner_id.lang}</field>
  16. <field name="body_html"><![CDATA[
  17. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  18. <p>Hello ${object.partner_id.name},</p>
  19. <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>
  20. <br/>
  21. <p>If you have any question, do not hesitate to contact us.</p>
  22. <br/>
  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. <!--Request the payment of the subscribed loan issue -->
  52. <record id="loan_issue_payment_request" model="mail.template">
  53. <field name="name">Loan Issue Payment Request - Send by Email</field>
  54. <field name="email_from">${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}</field>
  55. <field name="subject">${object.company_id.name} Payment request (Ref ${object.loan_issue_id.name or 'n/a'})</field>
  56. <field name="partner_to">${object.partner_id.id}</field>
  57. <field name="reply_to">${(object.company_id.coop_email_contact or object.loan_issue_id.user_id.email)|safe}</field>
  58. <field name="model_id" ref="easy_my_coop_loan.model_loan_issue_line"/>
  59. <field name="auto_delete" eval="True"/>
  60. <field name="lang">${object.partner_id.lang}</field>
  61. <field name="body_html"><![CDATA[
  62. <div style="font-family: 'Lucica Grande', Ubuntu, Arial, Verdana, sans-serif; font-size: 12px; color: rgb(34, 34, 34); background-color: #FFF; ">
  63. <p>Hello ${object.partner_id.name},</p>
  64. <p>Find here after the necessary information for the payment. We kindly remind you that your subscription will be effective only once we received the payment.</p>
  65. <p>Amount: ${object.amount} ${object.loan_issue_id.company_currency_id.symbol}</p>
  66. <p>Account number: ${object.company_id.partner_id.bank_ids[0].sanitized_acc_number}</p>
  67. <p>Communication: ${object.loan_issue_id.name} + ${object.partner_id.name}</p>
  68. <p>Sustainably your,</p>
  69. <p>${object.company_id.name}.</p>
  70. % if object.company_id.street:
  71. ${object.company_id.street}
  72. % endif
  73. % if object.company_id.street2:
  74. ${object.company_id.street2}<br/>
  75. % endif
  76. % if object.company_id.city or object.company_id.zip:
  77. ${object.company_id.zip} ${object.company_id.city}<br/>
  78. % endif
  79. % if object.company_id.country_id:
  80. ${object.company_id.state_id and ('%s, ' % object.company_id.state_id.name) or ''} ${object.company_id.country_id.name or ''}<br/>
  81. % endif
  82. % if object.company_id.phone:
  83. Phone:&nbsp; ${object.company_id.phone}
  84. % endif
  85. % if object.company_id.website:
  86. <div>
  87. Web :&nbsp;<a href="${object.company_id.website}">${object.company_id.website}</a>
  88. </div>
  89. %endif
  90. <div>
  91. <img src=${object.company_id.logo_url}>
  92. </div>
  93. </div>
  94. ]]></field>
  95. </record>
  96. </data>
  97. </odoo>