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.

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