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.

108 lines
4.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <!--
  3. Copyright 2015-2016 Odoo S.A.
  4. Copyright 2016 Jairo Llopis <jairo.llopis@tecnativa.com>
  5. Copyright 2018 Rémy Taymans <remytaymans@gmail.com>
  6. License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
  7. -->
  8. <openerp>
  9. <!-- Tax Shelter Certificate in the menu -->
  10. <template
  11. id="portal_my_home_menu_tax_shelter"
  12. name="Portal Menu: Easy My Coop Tax Shelter Certificate"
  13. inherit_id="website_portal_v10.portal_layout"
  14. priority="25">
  15. <xpath expr="//ul[contains(@class,'o_portal_submenu')]"
  16. position="inside">
  17. <li>
  18. <a href="/my/tax_shelter_certificate">
  19. Tax Shelter Certificate
  20. </a>
  21. </li>
  22. </xpath>
  23. </template>
  24. <!-- Tax Shelter Certificate on the main page -->
  25. <template
  26. id="portal_my_home_tax_shelter"
  27. name="Portal My Home : Easy My Coop Tax Shelter Certificate"
  28. inherit_id="website_portal_v10.portal_my_home"
  29. priority="25">
  30. <xpath expr="//div[contains(@class,'o_my_home_content')]"
  31. position="inside">
  32. <h3 class="page-header">
  33. <a href="/my/tax_shelter_certificate">
  34. Your Tax Shelter Certificate
  35. <small class="ml8">
  36. <t t-if="tax_shelter_count">
  37. <span class='badge'>
  38. <t t-esc="tax_shelter_count"/>
  39. </span>
  40. </t>
  41. <t t-if="not tax_shelter_count">
  42. There are currently no tax shelter certificate for
  43. your
  44. account.
  45. </t>
  46. </small>
  47. </a>
  48. </h3>
  49. </xpath>
  50. </template>
  51. <!-- Tax Shelter Certificate page -->
  52. <template id="portal_my_tax_shelter" name="My Tax Shelter">
  53. <t t-call="website_portal_v10.portal_layout">
  54. <h3 class="page-header">Your Tax Shelter Certificate</h3>
  55. <t t-if="not tax_shelters">
  56. <p>
  57. There are currently no tax shelter certificate for your
  58. account.
  59. </p>
  60. </t>
  61. <t t-if="tax_shelters">
  62. <table class="table table-hover o_my_status_table">
  63. <thead>
  64. <tr class="active">
  65. <th>Declaration Year</th>
  66. <th>Tax Shelter Certificate</th>
  67. <th>Share Certificate</th>
  68. <th>Total Amount</th>
  69. </tr>
  70. </thead>
  71. <tbody>
  72. <tr t-foreach="tax_shelters" t-as="tax_shelter">
  73. <td>
  74. <t t-esc="tax_shelter.declaration_id.name"/>
  75. </td>
  76. <td>
  77. <a t-att-href="'/my/taxshelter_certificate/pdf/%s'
  78. % tax_shelter.id">
  79. Tax Shelter Certificate
  80. </a>
  81. </td>
  82. <td>
  83. <a t-att-href="'/my/share_certificate/pdf/%s'
  84. % tax_shelter.id">
  85. Share Certificate
  86. </a>
  87. </td>
  88. <td>
  89. <span t-field="tax_shelter.total_amount"
  90. t-field-options='{
  91. "widget": "monetary",
  92. "display_currency": "tax_shelter.partner_id.company_id.currency_id"
  93. }'/>
  94. </td>
  95. </tr>
  96. </tbody>
  97. </table>
  98. <div t-if="pager" class="o_portal_pager text-center">
  99. <t t-call="website.pager"/>
  100. </div>
  101. </t>
  102. </t>
  103. </template>
  104. </openerp>