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.

105 lines
5.4 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
5 years ago
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="operation_request_tree" model="ir.ui.view">
  4. <field name="name">operation.request.tree</field>
  5. <field name="model">operation.request</field>
  6. <field name="arch" type="xml">
  7. <tree string="Operation requests" colors="green:state in ('approved'); blue:state in ('draft');grey: state in ('done')">
  8. <field name="request_date"/>
  9. <field name="partner_id"/>
  10. <field name="operation_type"/>
  11. <field name="quantity"/>
  12. <field name="user_id"/>
  13. <field name="state"/>
  14. </tree>
  15. </field>
  16. </record>
  17. <record id="operation_request_form" model="ir.ui.view">
  18. <field name="name">operation.request.form</field>
  19. <field name="model">operation.request</field>
  20. <field name="arch" type="xml">
  21. <form string="Operation request">
  22. <header>
  23. <button string="Submit" type="object" name="submit_operation" states="draft"/>
  24. <button string="Approve" type="object" name="approve_operation" states="waiting"/>
  25. <button string="Refuse" type="object" name="refuse_operation" states="waiting"/>
  26. <button string="Cancel" type="object" name="cancel_operation" states="draft,waiting,approved"/>
  27. <button string="Draft" type="object" name="reset_to_draft" states="waiting,cancelled"/>
  28. <button string="Execute" type="object" name="execute_operation" states="approved"/>
  29. <field name="state" widget="statusbar" statusbar_visible="draft,done,cancelled,refused" statusbar_colors='{"draft":"grey","done":"green","cancelled":"orange","refused":"red"}'/>
  30. </header>
  31. <sheet>
  32. <group>
  33. <group>
  34. <field name="request_date" attrs="{'readonly':[('state','!=','draft')]}"/>
  35. <field name="operation_type" attrs="{'readonly':[('state','!=','draft')]}"/>
  36. <field name="receiver_not_member" attrs="{'invisible':[('operation_type','!=','transfer')]}"/>
  37. <field name="partner_id" options="{'no_create':True}" attrs="{'readonly':[('state','!=','draft')]}"/>
  38. <field name="partner_id_to" options="{'no_create':True}" attrs="{'invisible':['|',('operation_type','!=','transfer'), ('receiver_not_member','=',True)]}"/>
  39. </group>
  40. <group>
  41. <field name="user_id"/>
  42. <field name="share_product_id" attrs="{'readonly':[('state','!=','draft')]}" widget="selection"/>
  43. <field name="share_short_name" readonly="True"/>
  44. <field name="share_to_product_id" attrs="{'invisible':[('operation_type','!=','convert')],'required':[('operation_type','=','convert')],'readonly':[('state','!=','draft')]}" widget="selection"/>
  45. <field name="share_to_short_name" readonly="True"/>
  46. <field name="quantity" attrs="{'readonly':[('state','!=','draft')]}"/>
  47. <field name="share_unit_price" readonly="True"/>
  48. <field name="subscription_amount" readonly="True" />
  49. </group>
  50. </group>
  51. <group>
  52. <field name="subscription_request" attrs="{'invisible':['|',('operation_type','!=','transfer'),('receiver_not_member','=',False)]}" context="{'default_is_operation': True, 'default_ordered_parts':quantity,'default_share_product_id': share_product_id, 'default_source':'operation'}">
  53. <tree>
  54. <field name="name"/>
  55. <field name="birthdate"/>
  56. <field name="phone"/>
  57. <field name="email"/>
  58. <field name="iban"/>
  59. <field name="state" invisible="True"/>
  60. </tree>
  61. <form string="Subscription Requests">
  62. <sheet>
  63. <group>
  64. <group>
  65. <field name="name"/>
  66. <field name="firstname"/>
  67. <field name="lastname"/>
  68. <field name="birthdate"/>
  69. <field name="gender"/>
  70. <field name="email"/>
  71. <field name="phone"/>
  72. <field name="iban"/>
  73. </group>
  74. <group>
  75. <field name="address"/>
  76. <field name="zip_code"/>
  77. <field name="city"/>
  78. <field name="country_id"/>
  79. <field name="lang"/>
  80. <field name="validated"/>
  81. <field name="skip_control_ng"/>
  82. <field name="ordered_parts" invisible="True"/>
  83. <field name="source" invisible="True"/>
  84. <field name="state" invisible="True"/>
  85. <field name="share_product_id" invisible="True"/>
  86. </group>
  87. </group>
  88. </sheet>
  89. </form>
  90. </field>
  91. </group>
  92. </sheet>
  93. </form>
  94. </field>
  95. </record>
  96. <record id="operation_request_action" model="ir.actions.act_window">
  97. <field name="name">Operation request</field>
  98. <field name="res_model">operation.request</field>
  99. <field name="view_type">form</field>
  100. <field name="view_id" ref="operation_request_tree"/>
  101. </record>
  102. </odoo>