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.

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