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.

199 lines
9.3 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. <record id="subscription_request_tree" model="ir.ui.view">
  4. <field name="name">subscription.request.tree</field>
  5. <field name="model">subscription.request</field>
  6. <field name="arch" type="xml">
  7. <!-- fixme no colors in v12 ? -->
  8. <tree string="Subscription Requests" colors="red:validated == False; blue:state in ('draft'); grey: state in ('done')">
  9. <field name="name"/>
  10. <field name="company_name"/>
  11. <field name="date" string="Request Date"/>
  12. <field name="type"/>
  13. <field name="share_short_name" string="Share Type"/>
  14. <field name="ordered_parts" string="Quantity" sum="Total ordered parts"/>
  15. <field name="subscription_amount" sum="Total amount"/>
  16. <field name="email"/>
  17. <field name="iban"/>
  18. <field name="partner_id"/>
  19. <field name="source"/>
  20. <field name="state"/>
  21. <field name="validated" invisible="True"/>
  22. <button type="object" string="Validate" aria-label="Validate" name="validate_subscription_request" attrs="{'invisible':['|',('state','not in',['draft','waiting']),('validated','=',False)]}"/>
  23. <button type="object" string="Block" aria-label="Block" name="block_subscription_request" states="draft" groups="easy_my_coop.group_easy_my_coop_user"/>
  24. <button type="object" string="Unblock" aria-label="Unblock" name="unblock_subscription_request" states="block" groups="easy_my_coop.group_easy_my_coop_user"/>
  25. </tree>
  26. </field>
  27. </record>
  28. <record id="subscription_request_form" model="ir.ui.view">
  29. <field name="name">subscription.request.form</field>
  30. <field name="model">subscription.request</field>
  31. <field name="arch" type="xml">
  32. <form string="Subscription Requests">
  33. <header>
  34. <button string="Validate" type="object" name="validate_subscription_request" attrs="{'invisible':['|',('state','not in',['draft','waiting']),('validated','=',False)]}"/>
  35. <button string="Waiting list" type="object" name="put_on_waiting_list" states="draft"/>
  36. <button string="Cancel" type="object" name="cancel_subscription_request" states="draft,waiting,done,block" groups="easy_my_coop.group_easy_my_coop_user"/>
  37. <field name="state" widget="statusbar" statusbar_visible="draft,cancelled,done,failed"/>
  38. </header>
  39. <sheet>
  40. <group>
  41. <group>
  42. <field name="validated" invisible="True"/>
  43. <field name="already_cooperator"/>
  44. <field name="is_company" groups="easy_my_coop.group_easy_my_coop_manager"/>
  45. <field name="is_operation" invisible="True"/>
  46. <field name="company_name" attrs="{'invisible':[('is_company','=',False)]}"/>
  47. <field name="company_email" attrs="{'invisible':[('is_company','=',False)]}"/>
  48. <field name="company_type" attrs="{'invisible':[('is_company','=',False)]}"/>
  49. <field name="company_register_number" attrs="{'invisible':[('is_company','=',False)]}"/>
  50. <field name="name"/>
  51. <field name="firstname"/>
  52. <field name="lastname"/>
  53. <field name="birthdate"/>
  54. <field name="gender"/>
  55. <field name="email"/>
  56. <field name="phone"/>
  57. <field name="contact_person_function" attrs="{'invisible':[('is_company','=',False)]}"/>
  58. <field name="iban"/>
  59. <field name="address"/>
  60. <field name="zip_code"/>
  61. <field name="city"/>
  62. <field name="country_id" options="{'no_create':True}"/>
  63. </group>
  64. <group>
  65. <field name="capital_release_request_date" groups="easy_my_coop.group_easy_my_coop_manager"/>
  66. <field name="date"/>
  67. <field name="source"/>
  68. <field name="ordered_parts"/>
  69. <field name="share_product_id" widget="selection"/>
  70. <field name="share_short_name"/>
  71. <field name="share_unit_price"/>
  72. <field name="subscription_amount"/>
  73. <field name="partner_id" options="{'no_create':True}"/>
  74. <field name="type"/>
  75. <field name="lang"/>
  76. <field name="skip_control_ng"/>
  77. </group>
  78. </group>
  79. <notebook>
  80. <page name="capital_release_request" string="Capital release request">
  81. <field name="capital_release_request">
  82. <tree options="{'no_create':True}">
  83. <field string="Cooperator" name="partner_id"/>
  84. <field name="date_invoice"/>
  85. <field name="number"/>
  86. <field string="Reference" name="reference"/>
  87. <field name="date_due"/>
  88. <field name="amount_total_signed"/>
  89. <field name="residual_signed"/>
  90. <field name="state"/>
  91. </tree>
  92. </field>
  93. </page>
  94. </notebook>
  95. </sheet>
  96. </form>
  97. </field>
  98. </record>
  99. <record id="view_subscription_request_filter" model="ir.ui.view">
  100. <field name="name">Cooperator Subscription Search</field>
  101. <field name="model">subscription.request</field>
  102. <field name="arch" type="xml">
  103. <search string="Search Subscription Request">
  104. <field name="name"/>
  105. <field name="partner_id"/>
  106. <separator/>
  107. <filter string="Draft" name="state_draft" domain="[('state','=','draft')]"/>
  108. <filter string="Paid" name="state_paid" domain="[('state','=','paid')]"/>
  109. <filter string="Done" name="state_done" domain="[('state','=','done')]"/>
  110. <separator/>
  111. <filter string="Not Validated" name="Not Validated" domain="[('validated', '=', False)]"/>
  112. <group expand="0" name="group_by" string="Group By">
  113. <filter name="request_type" string="Request type" context="{'group_by' : 'type'}" />
  114. <filter name="date" string="Request Date" context="{'group_by': 'date'}"/>
  115. </group>
  116. </search>
  117. </field>
  118. </record>
  119. <record id="subscription_request_action" model="ir.actions.act_window">
  120. <field name="name">Subscriptions</field>
  121. <field name="res_model">subscription.request</field>
  122. <field name="view_type">form</field>
  123. <field name="domain">[('is_operation','=',False)]</field>
  124. <field name="context">{'default_source':'manual'}</field>
  125. <field name="view_id" ref="subscription_request_tree"/>
  126. <field name="search_view_id" ref="view_subscription_request_filter"/>
  127. </record>
  128. <record id="share_line_form" model="ir.ui.view">
  129. <field name="name">share.line.form</field>
  130. <field name="model">share.line</field>
  131. <field name="arch" type="xml">
  132. <form string="Share line">
  133. <header>
  134. <button string="Update info" name="%(action_view_update_share_line_info)d"
  135. type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_manager"/>
  136. </header>
  137. <sheet>
  138. <group>
  139. <group>
  140. <field name="partner_id"/>
  141. <field name="share_product_id"/>
  142. <field name="share_number"/>
  143. </group>
  144. <group>
  145. <field name="share_short_name"/>
  146. <field name="share_unit_price"/>
  147. <field name="effective_date"/>
  148. <field name="total_amount_line"/>
  149. </group>
  150. </group>
  151. </sheet>
  152. </form>
  153. </field>
  154. </record>
  155. <record id="share_line_tree" model="ir.ui.view">
  156. <field name="name">share.line.tree</field>
  157. <field name="model">share.line</field>
  158. <field name="arch" type="xml">
  159. <tree>
  160. <field name="partner_id"/>
  161. <field name="share_product_id"/>
  162. <field name="share_number"/>
  163. <field name="share_short_name"/>
  164. <field name="share_unit_price"/>
  165. <field name="effective_date"/>
  166. <field name="total_amount_line"/>
  167. </tree>
  168. </field>
  169. </record>
  170. <record id="view_share_line_filter" model="ir.ui.view">
  171. <field name="name">Share Line Search</field>
  172. <field name="model">share.line</field>
  173. <field name="arch" type="xml">
  174. <search string="Search Share Line">
  175. <field name="partner_id"/>
  176. <field name="effective_date"/>
  177. <separator/>
  178. <group name="group_by" string="Group By">
  179. <filter name="cooperator" string="Cooperator" context="{'group_by' : 'partner_id'}" />
  180. <filter name="effective_date" string="Effective date" context="{'group_by': 'effective_date'}"/>
  181. </group>
  182. </search>
  183. </field>
  184. </record>
  185. <record id="share_line_action" model="ir.actions.act_window">
  186. <field name="name">Share Lines</field>
  187. <field name="res_model">share.line</field>
  188. <field name="view_type">form</field>
  189. </record>
  190. </odoo>