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
2.8 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>Total Amount</th>
  66. </tr>
  67. </thead>
  68. <tbody>
  69. <tr t-foreach="tax_shelters" t-as="tax_shelter">
  70. <td>
  71. <a t-att-href="'/report/pdf/easy_my_coop_taxshelter_report.tax_shelter_subscription_report/%s' %
  72. tax_shelter.id">
  73. <t t-esc="tax_shelter.declaration_id.name"/>
  74. </a>
  75. </td>
  76. <td><span t-field="tax_shelter.total_amount"/></td>
  77. </tr>
  78. </tbody>
  79. </table>
  80. <div t-if="pager" class="o_portal_pager text-center">
  81. <t t-call="website.pager"/>
  82. </div>
  83. </t>
  84. </t>
  85. </template>
  86. </openerp>