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.

157 lines
7.2 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="customer" attrs="{'invisible':[('is_share','=',False)]}"/>
  30. <field name="by_company"/>
  31. <field name="by_individual"/>
  32. </group>
  33. </group>
  34. </page>
  35. </page>
  36. </field>
  37. </record>
  38. <record id="share_product_filter" model="ir.ui.view">
  39. <field name="name">product.template.share.filter</field>
  40. <field name="model">product.template</field>
  41. <field name="inherit_id" ref="product.product_template_search_view"/>
  42. <field name="arch" type="xml">
  43. <xpath expr="." position="inside">
  44. <group expand="0" name="group_by" string="Group By">
  45. <filter name="Creation Date" context="{'group_by': 'create_date'}"/>
  46. </group>
  47. </xpath>
  48. </field>
  49. </record>
  50. <record id="share_product_action" model="ir.actions.act_window">
  51. <field name="name">Share type</field>
  52. <field name="type">ir.actions.act_window</field>
  53. <field name="res_model">product.template</field>
  54. <field name="view_type">form</field>
  55. <field name="view_mode">kanban,tree,form</field>
  56. <!-- <field name="context">{"search_default_filter_to_purchase":1}</field> -->
  57. <field name="search_view_id" eval="False" /> <!-- Force empty -->
  58. <field name="view_id" eval="False" /> <!-- Force empty -->
  59. <field name="domain">[('is_share','=',True)]</field>
  60. <field name="help" type="html">
  61. <p class="oe_view_nocontent_create">
  62. Click to define a new share product.
  63. </p>
  64. </field>
  65. </record>
  66. <!-- overriding product views to not display share product in the purchase and sale views-->
  67. <record id="product.product_normal_action" model="ir.actions.act_window">
  68. <field name="name">Product</field>
  69. <field name="type">ir.actions.act_window</field>
  70. <field name="res_model">product.product</field>
  71. <field name="view_mode">tree,form,kanban</field>
  72. <field name="view_type">form</field>
  73. <field name="search_view_id" ref="product.product_search_form_view"/>
  74. <field name="view_id" eval="False"/> <!-- Force empty -->
  75. <field name="domain">[('is_share','=',False)]</field>
  76. <field name="help" type="html">
  77. <p class="oe_view_nocontent_create">
  78. Click to define a new product.
  79. </p><p>
  80. You must define a product for everything you sell, whether it's
  81. a physical product, a consumable or a service you offer to
  82. customers.
  83. </p><p>
  84. The product form contains information to simplify the sale
  85. process: price, notes in the quotation, accounting data,
  86. procurement methods, etc.
  87. </p>
  88. </field>
  89. </record>
  90. <record id="product.product_template_action" model="ir.actions.act_window">
  91. <field name="name">Products</field>
  92. <field name="type">ir.actions.act_window</field>
  93. <field name="res_model">product.template</field>
  94. <field name="view_mode">tree,form,kanban</field>
  95. <field name="view_type">form</field>
  96. <field name="view_id" ref="product.product_template_kanban_view"/>
  97. <field name="context">{"search_default_filter_to_sell":1}</field>
  98. <field name="domain">[('is_share','=',False)]</field>
  99. <field name="help" type="html">
  100. <p class="oe_view_nocontent_create">
  101. Click to define a new product.
  102. </p><p>
  103. You must define a product for everything you sell, whether it's a physical product, a consumable or a service you offer to customers.
  104. </p><p>
  105. The product form contains information to simplify the sale process: price, notes in the quotation, accounting data, procurement methods, etc.
  106. </p>
  107. </field>
  108. </record>
  109. <record id="product.product_template_action" model="ir.actions.act_window">
  110. <field name="name">Products</field>
  111. <field name="type">ir.actions.act_window</field>
  112. <field name="res_model">product.template</field>
  113. <field name="view_mode">tree,form,kanban</field>
  114. <field name="view_type">form</field>
  115. <field name="context">{"search_default_products": 1, 'default_type': 'product'}</field>
  116. <field name="domain">[('is_share','=',False)]</field>
  117. <field name="help" type="html">
  118. <p class="oe_view_nocontent_create">
  119. Click to define a new product.
  120. </p>
  121. </field>
  122. </record>
  123. <!-- move this action to another module cause the original action has been
  124. moved to purchase module. So we want to avoid make purchase module installed
  125. <record id="product.product_normal_action_puchased" model="ir.actions.act_window">
  126. <field name="name">Products</field>
  127. <field name="type">ir.actions.act_window</field>
  128. <field name="res_model">product.template</field>
  129. <field name="view_type">form</field>
  130. <field name="view_mode">kanban,tree,form</field>
  131. <field name="context">{"search_default_filter_to_purchase":1}</field>
  132. <field name="search_view_id" eval="False"/> Force empty
  133. <field name="view_id" eval="False"/> Force empty
  134. <field name="domain">[('is_share','=',False)]</field>
  135. <field name="help" type="html">
  136. <p class="oe_view_nocontent_create">
  137. Click to define a new product.
  138. </p><p>
  139. You must define a product for everything you purchase, whether
  140. it's a physical product, a consumable or services you buy to
  141. subcontractants.
  142. </p><p>
  143. The product form contains detailed information to improve the
  144. purchase process: prices, procurement logistics, accounting data,
  145. available vendors, etc.
  146. </p>
  147. </field>
  148. </record> -->
  149. </odoo>