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.

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