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.

162 lines
5.9 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. <menuitem name="Loan Issue" id="menu_easy_my_coop_main_loan_issue" parent="easy_my_coop.menu_main_easy_my_coop" sequence="20" groups="easy_my_coop.group_easy_my_coop_user"/>
  4. <record id="view_loan_issue_tree" model="ir.ui.view">
  5. <field name="name">loan.issue.tree</field>
  6. <field name="model">loan.issue</field>
  7. <field name="arch" type="xml">
  8. <tree string="Loan issues">
  9. <field name="name" />
  10. <field name="subscription_start_date" />
  11. <field name="subscription_end_date" />
  12. <field name="term_date" />
  13. <field name="term" />
  14. <field name="rate" />
  15. <field name="minimum_amount" />
  16. <field name="maximum_amount" />
  17. <field name="subscribed_amount" />
  18. <field name="user_id" />
  19. <field name="state" />
  20. </tree>
  21. </field>
  22. </record>
  23. <record id="view_loan_issue_form" model="ir.ui.view">
  24. <field name="name">loan.issue.form</field>
  25. <field name="model">loan.issue</field>
  26. <field name="arch" type="xml">
  27. <form string="Loan issue">
  28. <header>
  29. <button name="action_confirm" string="Confirm" type="object" states="draft"
  30. groups="easy_my_coop.group_easy_my_coop_manager"/>
  31. <button name="action_cancel" string="Cancel" type="object" states="draft,ongoing"
  32. confirm="Are you sure you want to cancel this loan issue?"
  33. groups="easy_my_coop.group_easy_my_coop_manager"/>
  34. <button name="action_open" string="Open" type="object"
  35. states="confirmed" groups="easy_my_coop.group_easy_my_coop_manager"/>
  36. <button name="action_close" string="Close" type="object" states="ongoing"
  37. confirm="Are you sure you want to close this loan issue?"
  38. groups="easy_my_coop.group_easy_my_coop_manager"/>
  39. <button name="action_draft" string="Set to draft"
  40. type="object" states="confirmed,cancelled"
  41. groups="easy_my_coop.group_easy_my_coop_manager"/>
  42. <button name="compute_loan_interest" string="Compute interest"
  43. type="object" states="closed,ongoing"
  44. groups="easy_my_coop.group_easy_my_coop_manager"/>
  45. <field name="state" widget="statusbar" statusbar_visible="draft,confirmed,ongoing,closed"/>
  46. </header>
  47. <sheet>
  48. <div class="oe_button_box" name="button_box">
  49. <button name="toggle_display" type="object"
  50. class="oe_stat_button" icon="fa-globe">
  51. <field name="display_on_website" widget="website_button"/>
  52. </button>
  53. </div>
  54. <group>
  55. <group>
  56. <field name="name" />
  57. <field name="is_loan" />
  58. <field name="is_bond" />
  59. <field name="default_issue" />
  60. <field name="face_value" />
  61. <field name="minimum_amount" />
  62. <field name="maximum_amount" />
  63. <field name="maximum_amount_per_sub" />
  64. <field name="subscribed_amount" />
  65. <field name="by_individual" />
  66. <field name="by_company" />
  67. </group>
  68. <group>
  69. <field name="user_id" widget="selection" />
  70. <field name="rate" />
  71. <field name="taxes_rate" />
  72. <field name="subscription_start_date" />
  73. <field name="subscription_end_date" />
  74. <field name="term_date" />
  75. <field name="term" widget="selection"/>
  76. <field name="interest_payment" widget="selection" />
  77. </group>
  78. </group>
  79. <notebook>
  80. <page string="Lines">
  81. <field name="loan_issue_lines">
  82. <tree delete="false">
  83. <field name="name" />
  84. <field name="partner_id" />
  85. <field name="date" />
  86. <field name="quantity" />
  87. <field name="face_value" />
  88. <field name="amount" />
  89. <field name="state" />
  90. </tree>
  91. </field>
  92. </page>
  93. </notebook>
  94. </sheet>
  95. </form>
  96. </field>
  97. </record>
  98. <record id="action_loan_issue" model="ir.actions.act_window">
  99. <field name="name">Loan issue</field>
  100. <field name="type">ir.actions.act_window</field>
  101. <field name="res_model">loan.issue</field>
  102. <field name="view_type">form</field>
  103. <field name="view_mode">tree,form</field>
  104. </record>
  105. <menuitem action="action_loan_issue" id="loan_issue_menu" parent="menu_easy_my_coop_main_loan_issue" sequence="25" />
  106. <record id="view_loan_issue_line_form" model="ir.ui.view">
  107. <field name="name">loan.issue.line.form</field>
  108. <field name="model">loan.issue.line</field>
  109. <field name="arch" type="xml">
  110. <form string="Loan issue">
  111. <header>
  112. <button name="action_validate" string="Validate"
  113. type="object" states="draft" />
  114. <button name="action_request_payment" string="Request Payment"
  115. type="object" states="subscribed" />
  116. <button name="action_cancel" string="Cancel" type="object"
  117. states="draft,subscribed,waiting"
  118. confirm="Are you sure you want to cancel this loan subscription ?" />
  119. <button name="action_draft" string="Set to draft"
  120. type="object" states="cancelled" />
  121. <button name="action_paid" string="Paid"
  122. type="object" states="waiting" />
  123. <field name="state" widget="statusbar" />
  124. </header>
  125. <sheet>
  126. <group>
  127. <group>
  128. <field name="name" />
  129. <field name="quantity" />
  130. <field name="face_value" />
  131. </group>
  132. <group>
  133. <field name="date" />
  134. <field name="partner_id" />
  135. <field name="amount" />
  136. </group>
  137. </group>
  138. <notebook>
  139. <page string="Interst lines">
  140. <field name="interest_lines">
  141. <tree delete="false" create="false">
  142. <field name="name" />
  143. <field name="amount" />
  144. <field name="accrued_amount" />
  145. <field name="interest" />
  146. <field name="net_interest" />
  147. <field name="taxes_amount" />
  148. <field name="due_date" />
  149. <field name="state" />
  150. </tree>
  151. </field>
  152. </page>
  153. </notebook>
  154. </sheet>
  155. </form>
  156. </field>
  157. </record>
  158. </odoo>