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.

198 lines
9.2 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. <field name="partner_id"/>
  105. <separator/>
  106. <filter string="Draft" name="state_draft" domain="[('state','=','draft')]"/>
  107. <filter string="Paid" name="state_paid" domain="[('state','=','paid')]"/>
  108. <filter string="Done" name="state_done" domain="[('state','=','done')]"/>
  109. <separator/>
  110. <filter string="Not Validated" name="Not Validated" domain="[('validated', '=', False)]"/>
  111. <group expand="0" name="group_by" string="Group By">
  112. <filter name="request_type" string="Request type" context="{'group_by' : 'type'}" />
  113. <filter name="date" string="Request Date" context="{'group_by': 'date'}"/>
  114. </group>
  115. </search>
  116. </field>
  117. </record>
  118. <record id="subscription_request_action" model="ir.actions.act_window">
  119. <field name="name">Subscriptions</field>
  120. <field name="res_model">subscription.request</field>
  121. <field name="view_type">form</field>
  122. <field name="domain">[('is_operation','=',False)]</field>
  123. <field name="context">{'default_source':'manual'}</field>
  124. <field name="view_id" ref="subscription_request_tree"/>
  125. <field name="search_view_id" ref="view_subscription_request_filter"/>
  126. </record>
  127. <record id="share_line_form" model="ir.ui.view">
  128. <field name="name">share.line.form</field>
  129. <field name="model">share.line</field>
  130. <field name="arch" type="xml">
  131. <form string="Share line">
  132. <header>
  133. <button string="Update info" name="%(action_view_update_share_line_info)d"
  134. type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
  135. </header>
  136. <sheet>
  137. <group>
  138. <group>
  139. <field name="partner_id"/>
  140. <field name="share_product_id"/>
  141. <field name="share_number"/>
  142. </group>
  143. <group>
  144. <field name="share_short_name"/>
  145. <field name="share_unit_price"/>
  146. <field name="effective_date"/>
  147. <field name="total_amount_line"/>
  148. </group>
  149. </group>
  150. </sheet>
  151. </form>
  152. </field>
  153. </record>
  154. <record id="share_line_tree" model="ir.ui.view">
  155. <field name="name">share.line.tree</field>
  156. <field name="model">share.line</field>
  157. <field name="arch" type="xml">
  158. <tree>
  159. <field name="partner_id"/>
  160. <field name="share_product_id"/>
  161. <field name="share_number"/>
  162. <field name="share_short_name"/>
  163. <field name="share_unit_price"/>
  164. <field name="effective_date"/>
  165. <field name="total_amount_line"/>
  166. </tree>
  167. </field>
  168. </record>
  169. <record id="view_share_line_filter" model="ir.ui.view">
  170. <field name="name">Share Line Search</field>
  171. <field name="model">share.line</field>
  172. <field name="arch" type="xml">
  173. <search string="Search Share Line">
  174. <field name="partner_id"/>
  175. <field name="effective_date"/>
  176. <separator/>
  177. <group name="group_by" string="Group By">
  178. <filter name="cooperator" string="Cooperator" context="{'group_by' : 'partner_id'}" />
  179. <filter name="effective_date" string="Effective date" context="{'group_by': 'effective_date'}"/>
  180. </group>
  181. </search>
  182. </field>
  183. </record>
  184. <record id="share_line_action" model="ir.actions.act_window">
  185. <field name="name">Share Lines</field>
  186. <field name="res_model">share.line</field>
  187. <field name="view_type">form</field>
  188. </record>
  189. </odoo>