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.

145 lines
6.8 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="product_template_share_form_view" model="ir.ui.view">
  4. <field name="name">product.template.share.form</field>
  5. <field name="model">product.template</field>
  6. <field name="inherit_id" ref="product.product_template_form_view"/>
  7. <field name="arch" type="xml">
  8. <xpath expr="//field[@name='purchase_ok']/.." position="after">
  9. <div groups="easy_my_coop.group_easy_my_coop_super_manager">
  10. <field name="is_share"/>
  11. <label for="is_share"/>
  12. </div>
  13. <div attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user">
  14. <field name="display_on_website"/>
  15. <label for="display_on_website"/>
  16. </div>
  17. </xpath>
  18. <page name="general_information" position="after">
  19. <page string="Share Information" name="share_information" attrs="{'invisible':[('is_share','=',False)]}" groups="easy_my_coop.group_easy_my_coop_user">
  20. <group>
  21. <group name="Info" string="Info">
  22. <field name="short_name"/>
  23. <field name="default_share_product"/>
  24. <field name="mail_template"/>
  25. </group>
  26. <group name="configuration" string="Configuration">
  27. <field name="force_min_qty"/>
  28. <field name="minimum_quantity"/>
  29. <field name="maximum_amount"/>
  30. <field name="customer" attrs="{'invisible':[('is_share','=',False)]}"/>
  31. <field name="by_company"/>
  32. <field name="by_individual"/>
  33. </group>
  34. </group>
  35. </page>
  36. </page>
  37. </field>
  38. </record>
  39. <record id="share_product_action" model="ir.actions.act_window">
  40. <field name="name">Share type</field>
  41. <field name="type">ir.actions.act_window</field>
  42. <field name="res_model">product.template</field>
  43. <field name="view_type">form</field>
  44. <field name="view_mode">kanban,tree,form</field>
  45. <!-- <field name="context">{"search_default_filter_to_purchase":1}</field> -->
  46. <field name="search_view_id" eval="False" /> <!-- Force empty -->
  47. <field name="view_id" eval="False" /> <!-- Force empty -->
  48. <field name="domain">[('is_share','=',True)]</field>
  49. <field name="help" type="html">
  50. <p class="oe_view_nocontent_create">
  51. Click to define a new share product.
  52. </p>
  53. </field>
  54. </record>
  55. <!-- overriding product views to not display share product in the purchase and sale views-->
  56. <record id="product.product_normal_action" model="ir.actions.act_window">
  57. <field name="name">Product</field>
  58. <field name="type">ir.actions.act_window</field>
  59. <field name="res_model">product.product</field>
  60. <field name="view_mode">tree,form,kanban</field>
  61. <field name="view_type">form</field>
  62. <field name="search_view_id" ref="product.product_search_form_view"/>
  63. <field name="view_id" eval="False"/> <!-- Force empty -->
  64. <field name="domain">[('is_share','=',False)]</field>
  65. <field name="help" type="html">
  66. <p class="oe_view_nocontent_create">
  67. Click to define a new product.
  68. </p><p>
  69. You must define a product for everything you sell, whether it's
  70. a physical product, a consumable or a service you offer to
  71. customers.
  72. </p><p>
  73. The product form contains information to simplify the sale
  74. process: price, notes in the quotation, accounting data,
  75. procurement methods, etc.
  76. </p>
  77. </field>
  78. </record>
  79. <record id="product.product_template_action" model="ir.actions.act_window">
  80. <field name="name">Products</field>
  81. <field name="type">ir.actions.act_window</field>
  82. <field name="res_model">product.template</field>
  83. <field name="view_mode">tree,form,kanban</field>
  84. <field name="view_type">form</field>
  85. <field name="view_id" ref="product.product_template_kanban_view"/>
  86. <field name="context">{"search_default_filter_to_sell":1}</field>
  87. <field name="domain">[('is_share','=',False)]</field>
  88. <field name="help" type="html">
  89. <p class="oe_view_nocontent_create">
  90. Click to define a new product.
  91. </p><p>
  92. You must define a product for everything you sell, whether it's a physical product, a consumable or a service you offer to customers.
  93. </p><p>
  94. The product form contains information to simplify the sale process: price, notes in the quotation, accounting data, procurement methods, etc.
  95. </p>
  96. </field>
  97. </record>
  98. <record id="product.product_template_action" model="ir.actions.act_window">
  99. <field name="name">Products</field>
  100. <field name="type">ir.actions.act_window</field>
  101. <field name="res_model">product.template</field>
  102. <field name="view_mode">tree,form,kanban</field>
  103. <field name="view_type">form</field>
  104. <field name="context">{"search_default_products": 1, 'default_type': 'product'}</field>
  105. <field name="domain">[('is_share','=',False)]</field>
  106. <field name="help" type="html">
  107. <p class="oe_view_nocontent_create">
  108. Click to define a new product.
  109. </p>
  110. </field>
  111. </record>
  112. <!-- move this action to another module cause the original action has been
  113. moved to purchase module. So we want to avoid make purchase module installed
  114. <record id="product.product_normal_action_puchased" model="ir.actions.act_window">
  115. <field name="name">Products</field>
  116. <field name="type">ir.actions.act_window</field>
  117. <field name="res_model">product.template</field>
  118. <field name="view_type">form</field>
  119. <field name="view_mode">kanban,tree,form</field>
  120. <field name="context">{"search_default_filter_to_purchase":1}</field>
  121. <field name="search_view_id" eval="False"/> Force empty
  122. <field name="view_id" eval="False"/> Force empty
  123. <field name="domain">[('is_share','=',False)]</field>
  124. <field name="help" type="html">
  125. <p class="oe_view_nocontent_create">
  126. Click to define a new product.
  127. </p><p>
  128. You must define a product for everything you purchase, whether
  129. it's a physical product, a consumable or services you buy to
  130. subcontractants.
  131. </p><p>
  132. The product form contains detailed information to improve the
  133. purchase process: prices, procurement logistics, accounting data,
  134. available vendors, etc.
  135. </p>
  136. </field>
  137. </record> -->
  138. </odoo>