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.

90 lines
3.1 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2018 Rémy Taymans <remytaymans@gmail.com>
  4. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  5. -->
  6. <openerp>
  7. <!-- Add cooperator information -->
  8. <template
  9. id="website_portal_details_form"
  10. name="Website Portal Details Form"
  11. inherit_id="website_portal_v10.portal_layout">
  12. <xpath expr="//div[@class='o_my_details']" position="after">
  13. <div class="o_my_details_coop" t-if="coop.member">
  14. <h3 class="page-header">Your Cooperator Details</h3>
  15. <p class="text-center">
  16. <span t-if="coop.member">
  17. You are an effective cooperator
  18. </span>
  19. <span t-if="not coop.member">
  20. You are not a cooperator
  21. </span>
  22. </p>
  23. <p t-if="coop.cooperator_register_number">
  24. <label>Cooperator Number: </label>
  25. <t t-esc="coop.cooperator_register_number"/>
  26. </p>
  27. <p t-if="coop.effective_date">
  28. <label>Cooperator Entrance Date: </label>
  29. <span t-field="coop.effective_date"/>
  30. </p>
  31. <p t-if="coop.number_of_share">
  32. <label>Number of Share: </label>
  33. <t t-esc="coop.number_of_share"/>
  34. </p>
  35. <p t-if="coop.share_ids">
  36. <div t-foreach="coop.share_ids" t-as="share">
  37. <span t-field="share.effective_date"/>:
  38. <t t-esc="share.share_number"/> x
  39. <t t-esc="share.share_short_name"/>
  40. (<span t-field="share.share_unit_price"
  41. t-field-options='{
  42. "widget": "monetary",
  43. "display_currency": "coop.company_id.currency_id"
  44. }'/>) -
  45. <span t-field="share.total_amount_line"
  46. t-field-options='{
  47. "widget": "monetary",
  48. "display_currency": "coop.company_id.currency_id"
  49. }'/>
  50. </div>
  51. </p>
  52. <p t-if="coop.total_value">
  53. <label>Total Value of Share: </label>
  54. <span t-field="coop.total_value"
  55. t-field-options='{
  56. "widget": "monetary",
  57. "display_currency": "coop.company_id.currency_id"
  58. }'/>
  59. </p>
  60. <p t-if="coop.gender">
  61. <label>Gender: </label>
  62. <t t-esc="coop.gender"/>
  63. </p>
  64. <p t-if="coop.birthdate">
  65. <label>Date of Birth: </label>
  66. <t t-esc="coop.birthdate"/>
  67. </p>
  68. <p t-if="coop_bank and coop_bank.acc_number">
  69. <label>Bank Account: </label>
  70. <t t-esc="coop_bank.acc_number"/>
  71. </p>
  72. <p t-if="coop.national_register_number">
  73. <label>National Register Number: </label>
  74. <t t-esc="coop.national_register_number"/>
  75. </p>
  76. <p t-if="coop.company_register_number">
  77. <label>Company Register Number: </label>
  78. <t t-esc="coop.company_register_number"/>
  79. </p>
  80. <p t-if="coop.representative">
  81. <label>Legal Representative: </label>
  82. <t t-esc="coop.representative"/>
  83. </p>
  84. </div>
  85. </xpath>
  86. </template>
  87. </openerp>