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.

110 lines
3.5 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 your
  43. account.
  44. </t>
  45. </small>
  46. </a>
  47. </h3>
  48. </xpath>
  49. </template>
  50. <!-- Tax Shelter Certificate page -->
  51. <template id="portal_my_tax_shelter" name="My Tax Shelter">
  52. <t t-call="website_portal_v10.portal_layout">
  53. <h3 class="page-header">Your Tax Shelter Certificate</h3>
  54. <t t-if="not tax_shelters">
  55. <p>
  56. There are currently no tax shelter certificate for your
  57. account.
  58. </p>
  59. </t>
  60. <t t-if="tax_shelters">
  61. <table class="table table-hover o_my_status_table">
  62. <thead>
  63. <tr class="active">
  64. <th>Declaration Year</th>
  65. <th>Subscription Certificate</th>
  66. <th>Share Certificate</th>
  67. <th>Total Amount</th>
  68. </tr>
  69. </thead>
  70. <tbody>
  71. <tr t-foreach="tax_shelters" t-as="tax_shelter">
  72. <td>
  73. <a t-att-href="'/report/pdf/easy_my_coop_taxshelter_report.tax_shelter_subscription_report/%s' %
  74. tax_shelter.id">
  75. <t t-esc="tax_shelter.declaration_id.name"/>
  76. </a>
  77. </td>
  78. <td>
  79. <a t-att-href="'/my/subscription_certificate/pdf/%s'
  80. % tax_shelter.id">
  81. Subscription Certificate
  82. </a>
  83. </td>
  84. <td>
  85. <a t-att-href="'/my/share_certificate/pdf/%s'
  86. % tax_shelter.id">
  87. Share Certificate
  88. </a>
  89. </td>
  90. <td>
  91. <span t-field="tax_shelter.total_amount"
  92. t-field-options='{
  93. "widget": "monetary",
  94. "display_currency": "tax_shelter.partner_id.company_id.currency_id"
  95. }'/>
  96. </td>
  97. </tr>
  98. </tbody>
  99. </table>
  100. <div t-if="pager" class="o_portal_pager text-center">
  101. <t t-call="website.pager"/>
  102. </div>
  103. </t>
  104. </t>
  105. </template>
  106. </openerp>