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.

163 lines
8.3 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. <data>
  4. <record id="view_partner_form_easy_my_coop" model="ir.ui.view">
  5. <field name="name">res.partner.form.easy_my_coop</field>
  6. <field name="model">res.partner</field>
  7. <field name="inherit_id" ref="base.view_partner_form"/>
  8. <field name="arch" type="xml">
  9. <sheet position="before">
  10. <header>
  11. <button string="Create Subscription" name="%(action_view_create_subscription)d"
  12. type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_manager"/>
  13. <button string="Update info" name="%(action_view_update_partner_info)d"
  14. type="action" context="{'default_active_id': active_id}" groups="easy_my_coop.group_easy_my_coop_manager"/>
  15. </header>
  16. </sheet>
  17. <xpath expr="/form/sheet/group" position='before'>
  18. <group>
  19. <group>
  20. <field name="representative" attrs="{'invisible':['|',('parent_id','=',False),('is_company','=',True)]}"/>
  21. <field name="cooperator_register_number" readonly="True" attrs="{'invisible':[('member','=',False)]}"/>
  22. <field name="company_register_number" readonly="True" attrs="{'invisible':[('is_company','=',False)]}"/>
  23. <field name="coop_candidate" groups="easy_my_coop.group_easy_my_coop_user"/>
  24. <field name="cooperator" invisible="True" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
  25. <field name="member" groups="easy_my_coop.group_easy_my_coop_super_manager"/>
  26. <field name="cooperator_type" attrs="{'invisible':[('member','=',False)]}"/>
  27. <field name="effective_date" attrs="{'invisible':[('member','=',False)]}"/>
  28. </group>
  29. <group>
  30. <field name="gender" attrs="{'invisible':[('is_company','=',True)]}"/>
  31. </group>
  32. </group>
  33. </xpath>
  34. <page name='sales_purchases' position="after">
  35. <page string="Shares" name="share" attrs="{'invisible':[('member','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user">
  36. <group>
  37. <field name="number_of_share"/>
  38. <field name="total_value"/>
  39. </group>
  40. <field name="share_ids">
  41. <tree create="false">
  42. <field name="effective_date"/>
  43. <field name="share_short_name"/>
  44. <field name="share_number" sum="Total of shares"/>
  45. <field name="share_unit_price"/>
  46. <field name="total_amount_line" sum="Total subscribed amount"/>
  47. </tree>
  48. </field>
  49. </page>
  50. <page string="Share subscriptions" name="share_subscription" attrs="{'invisible':[('cooperator','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user">
  51. <field name="subscription_request_ids">
  52. <tree create="false" delete="false" edit="false">
  53. <field name="share_short_name"/>
  54. <field name="ordered_parts" sum="Total of shares"/>
  55. <field name="share_unit_price"/>
  56. <field name="subscription_amount" sum="Total subscribed amount"/>
  57. <field name="type"/>
  58. <field name="state"/>
  59. </tree>
  60. </field>
  61. </page>
  62. </page>
  63. </field>
  64. </record>
  65. <record id="view_partner_tree_easy_my_coop" model="ir.ui.view">
  66. <field name="name">res.partner.tree.easy_my_coop</field>
  67. <field name="model">res.partner</field>
  68. <field name="inherit_id" ref="base.view_partner_tree"/>
  69. <field name="arch" type="xml">
  70. <xpath expr="/tree/field[@name='display_name']" position='after'>
  71. <field name="cooperator_register_number" />
  72. <field name="cooperator_type"/>
  73. <field name="effective_date"/>
  74. </xpath>
  75. </field>
  76. </record>
  77. <record id="view_res_partner_filter_coop" model="ir.ui.view">
  78. <field name="name">res.partner.select</field>
  79. <field name="model">res.partner</field>
  80. <field name="inherit_id" ref="base.view_res_partner_filter"/>
  81. <field name="arch" type="xml">
  82. <xpath expr="//filter[@name='supplier']" position='after'>
  83. <filter string="Cooperators" name="cooperator" domain="[('member','=',1)]" help="Cooperator Partners"/>
  84. </xpath>
  85. <filter name="salesperson" position="before">
  86. <filter name="Cooperator Type" context="{'group_by': 'cooperator_type'}"/>
  87. </filter>
  88. </field>
  89. </record>
  90. <record id="action_partner_cooperator_form" model="ir.actions.act_window">
  91. <field name="name">Cooperator</field>
  92. <field name="type">ir.actions.act_window</field>
  93. <field name="res_model">res.partner</field>
  94. <field name="view_type">form</field>
  95. <field name="view_mode">kanban,tree,form</field>
  96. <field name="domain">[('cooperator','=',True),('member','=',True),('old_member','=',False)]</field>
  97. <field name="context">{'default_cooperator':1, 'search_default_cooperator':1}</field>
  98. <field name="filter" eval="True"/>
  99. <field name="help" type="html">
  100. <p class="oe_view_nocontent_create">
  101. Click to add a contact in your address book.
  102. </p><p>
  103. OpenERP helps you easily track all activities related to
  104. a cooperator: discussions, history of business opportunities,
  105. documents, etc.
  106. </p>
  107. </field>
  108. </record>
  109. <record id="action_partner_cooperator_candidate_form" model="ir.actions.act_window">
  110. <field name="name">Cooperator candidates</field>
  111. <field name="type">ir.actions.act_window</field>
  112. <field name="res_model">res.partner</field>
  113. <field name="view_type">form</field>
  114. <field name="view_mode">kanban,tree,form</field>
  115. <field name="domain">[('cooperator','=',True),('coop_candidate','=',True),('member','=',False)]</field>
  116. <field name="context">{'default_cooperator':1}</field>
  117. <field name="filter" eval="True"/>
  118. <field name="help" type="html">
  119. <p class="oe_view_nocontent_create">
  120. Click to add a contact in your address book.
  121. </p><p>
  122. OpenERP helps you easily track all activities related to
  123. a cooperator: discussions, history of business opportunities,
  124. documents, etc.
  125. </p>
  126. </field>
  127. </record>
  128. <record id="action_company_representative_form" model="ir.actions.act_window">
  129. <field name="name">Company representative</field>
  130. <field name="type">ir.actions.act_window</field>
  131. <field name="res_model">res.partner</field>
  132. <field name="view_type">form</field>
  133. <field name="view_mode">kanban,tree,form</field>
  134. <field name="domain">[('cooperator','=',True),('representative','=',True)]</field>
  135. <field name="filter" eval="True"/>
  136. <field name="help" type="html">
  137. <p class="oe_view_nocontent_create">
  138. Click to add a contact in your address book.
  139. </p><p>
  140. OpenERP helps you easily track all activities related to
  141. a cooperator: discussions, history of business opportunities,
  142. documents, etc.
  143. </p>
  144. </field>
  145. </record>
  146. <record id="remove_partner_follower" model="ir.ui.view">
  147. <field name="name">res.partner.remove.follower.inherit</field>
  148. <field name="model">res.partner</field>
  149. <field name="inherit_id" ref="mail.res_partner_view_form_inherit_mail"/>
  150. <field name="arch" type="xml">
  151. <field name="message_follower_ids" position="replace"/>
  152. </field>
  153. </record>
  154. </data>
  155. </odoo>