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.

237 lines
12 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
[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="Easy-My Coop" id="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_easy_my_coop_user"/>
  4. <menuitem name="Subscription" id="menu_easy_my_coop_main_subscription" parent="menu_main_easy_my_coop" sequence="10" groups="easy_my_coop.group_easy_my_coop_manager"/>
  5. <menuitem name="Reporting" id="menu_easy_my_coop_main_reporting" parent="menu_main_easy_my_coop" sequence="40" groups="easy_my_coop.group_easy_my_coop_manager"/>
  6. <record id="subscription_request_tree" model="ir.ui.view">
  7. <field name="name">subscription.request.tree</field>
  8. <field name="model">subscription.request</field>
  9. <field name="arch" type="xml">
  10. <tree string="Cooperator Subscriptions Request" colors="red:validated == False; blue:state in ('draft');grey: state in ('done')">
  11. <field name="name"/>
  12. <field name="date" string="Request Date"/>
  13. <field name="type"/>
  14. <field name="share_short_name" string="Share Type"/>
  15. <field name="ordered_parts" string="Quantity" sum="Total ordered parts"/>
  16. <field name="subscription_amount" sum="Total amount"/>
  17. <field name="email"/>
  18. <field name="iban"/>
  19. <field name="partner_id"/>
  20. <field name="source"/>
  21. <field name="state"/>
  22. <field name="validated" invisible="True"/>
  23. <button type="object" string="Validate" aria-label="Validate" name="validate_subscription_request" attrs="{'invisible':['|',('state','!=','draft'),('validated','=',False)]}"/>
  24. <button type="object" string="Block" aria-label="Block" name="block_subscription_request" states="draft" groups="easy_my_coop.group_easy_my_coop_user"/>
  25. <button type="object" string="Unblock" aria-label="Unblock" name="unblock_subscription_request" states="block" groups="easy_my_coop.group_easy_my_coop_manager"/>
  26. </tree>
  27. </field>
  28. </record>
  29. <record id="subscription_request_form" model="ir.ui.view">
  30. <field name="name">subscription.request.form</field>
  31. <field name="model">subscription.request</field>
  32. <field name="arch" type="xml">
  33. <form string="Subscription Requests">
  34. <header>
  35. <button string="Validate" type="object" name="validate_subscription_request" attrs="{'invisible':['|',('state','not in',['draft','waiting']),('validated','=',False)]}"/>
  36. <button string="Waiting list" type="object" name="put_on_waiting_list" states="draft"/>
  37. <button string="Cancel" type="object" name="cancel_subscription_request" states="draft,done,block" groups="easy_my_coop.group_easy_my_coop_manager"/>
  38. <field name="state" widget="statusbar" statusbar_visible="draft,cancelled,done,failed"/>
  39. </header>
  40. <sheet>
  41. <group>
  42. <group>
  43. <field name="already_cooperator"/>
  44. <field name="is_company" groups="easy_my_coop.group_easy_my_coop_super_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_super_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="validated" invisible="True"/>
  77. <field name="skip_control_ng"/>
  78. </group>
  79. </group>
  80. <notebook>
  81. <page name="capital_release_request" string="Capital release request">
  82. <field name="capital_release_request">
  83. <tree options="{'no_create':True}">
  84. <field string="Cooperator" name="partner_id"/>
  85. <field name="date_invoice"/>
  86. <field name="number"/>
  87. <field string="Reference" name="reference"/>
  88. <field name="date_due"/>
  89. <field name="amount_total_signed"/>
  90. <field name="residual_signed"/>
  91. <field name="state"/>
  92. </tree>
  93. </field>
  94. </page>
  95. </notebook>
  96. </sheet>
  97. </form>
  98. </field>
  99. </record>
  100. <record id="view_subscription_request_filter" model="ir.ui.view">
  101. <field name="name">Cooperator Subscription Search</field>
  102. <field name="model">subscription.request</field>
  103. <field name="arch" type="xml">
  104. <search string="Search Subscription Request">
  105. <field name="name"/>
  106. <separator/>
  107. <filter string="draft" name="state_draft" domain="[('state','=','draft')]"/>
  108. <filter string="done" name="state_done" domain="[('state','=','done')]"/>
  109. <separator/>
  110. <filter string="Unvalid" name="Unvalid" 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_month" string="Date Month" 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">Cooperator Subscription</field>
  120. <field name="res_model">subscription.request</field>
  121. <field name="view_type">form</field>
  122. <field name="domain">[('is_company','=',False),('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. <menuitem action="subscription_request_action" name="Cooperator Subscription" id="menu_easy_my_coop_subscription_request" parent="menu_easy_my_coop_main_subscription" sequence="10"/>
  128. <record id="company_subscription_request_tree" model="ir.ui.view">
  129. <field name="name">subscription.request.tree</field>
  130. <field name="model">subscription.request</field>
  131. <field name="arch" type="xml">
  132. <tree string="Company Cooperator Subscriptions Request" colors="red:validated == False; blue:state in ('draft');grey: state in ('done')">
  133. <field name="company_name"/>
  134. <field name="name"/>
  135. <field name="date" string="Request Date"/>
  136. <field name="type"/>
  137. <field name="share_short_name" string="Share Type"/>
  138. <field name="ordered_parts" string="Quantity" sum="Total ordered parts"/>
  139. <field name="subscription_amount" sum="Total amount"/>
  140. <field name="email"/>
  141. <field name="iban"/>
  142. <field name="partner_id"/>
  143. <field name="source"/>
  144. <field name="state"/>
  145. <field name="validated" invisible="True"/>
  146. <button type="object" title="Validate" aria-label="Validate" name="validate_subscription_request" attrs="{'invisible':['|',('state','!=','draft'),('validated','=',False)]}" icon="STOCK_MEDIA_PLAY" />
  147. <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"/>
  148. <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"/>
  149. </tree>
  150. </field>
  151. </record>
  152. <record id="company_subscription_request_action" model="ir.actions.act_window">
  153. <field name="name">Company Subscription</field>
  154. <field name="res_model">subscription.request</field>
  155. <field name="view_type">form</field>
  156. <field name="domain">[('is_company','=',True),('is_operation','=',False)]</field>
  157. <field name="context">{'default_is_company': True,'default_source':'manual'}</field>
  158. <field name="view_id" ref="company_subscription_request_tree"/>
  159. <field name="search_view_id" ref="view_subscription_request_filter"/>
  160. </record>
  161. <menuitem action="company_subscription_request_action" name="Company Subscription" id="menu_easy_my_coop_company_subscription_request" parent="menu_easy_my_coop_main_subscription" sequence="15"/>
  162. <record id="share_line_form" model="ir.ui.view">
  163. <field name="name">share.line.form</field>
  164. <field name="model">share.line</field>
  165. <field name="arch" type="xml">
  166. <form string="Share line">
  167. <header>
  168. <button string="Update info" name="%(action_view_update_share_line_info)d"
  169. type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
  170. </header>
  171. <sheet>
  172. <group>
  173. <group>
  174. <field name="partner_id"/>
  175. <field name="share_product_id"/>
  176. <field name="share_number"/>
  177. </group>
  178. <group>
  179. <field name="share_short_name"/>
  180. <field name="share_unit_price"/>
  181. <field name="effective_date"/>
  182. <field name="total_amount_line"/>
  183. </group>
  184. </group>
  185. </sheet>
  186. </form>
  187. </field>
  188. </record>
  189. <record id="share_line_tree" model="ir.ui.view">
  190. <field name="name">share.line.tree</field>
  191. <field name="model">share.line</field>
  192. <field name="arch" type="xml">
  193. <tree>
  194. <field name="partner_id"/>
  195. <field name="share_product_id"/>
  196. <field name="share_number"/>
  197. <field name="share_short_name"/>
  198. <field name="share_unit_price"/>
  199. <field name="effective_date"/>
  200. <field name="total_amount_line"/>
  201. </tree>
  202. </field>
  203. </record>
  204. <record id="view_share_line_filter" model="ir.ui.view">
  205. <field name="name">Share Line Search</field>
  206. <field name="model">share.line</field>
  207. <field name="arch" type="xml">
  208. <search string="Search Share Line">
  209. <field name="partner_id"/>
  210. <field name="effective_date"/>
  211. <separator/>
  212. <group name="group_by" string="Group By">
  213. <filter name="cooperator" string="Cooperator" context="{'group_by' : 'partner_id'}" />
  214. <filter name="effective_date" string="Effective date" context="{'group_by': 'effective_date'}"/>
  215. </group>
  216. </search>
  217. </field>
  218. </record>
  219. <record id="share_line_action" model="ir.actions.act_window">
  220. <field name="name">Share Lines</field>
  221. <field name="res_model">share.line</field>
  222. <field name="view_type">form</field>
  223. </record>
  224. <menuitem action="share_line_action" name="Share lines" id="menu_easy_my_coop_share_line" parent="menu_easy_my_coop_main_subscription" sequence="20" groups="group_easy_my_coop_super_manager"/>
  225. </odoo>