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.

163 lines
9.4 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="vat_report">
  4. <t t-call="web.html_container">
  5. <t t-foreach="docs" t-as="o">
  6. <t t-call="account_financial_report.internal_layout">
  7. <t t-call="account_financial_report.report_vat_report_base"/>
  8. </t>
  9. </t>
  10. </t>
  11. </template>
  12. <template id="account_financial_report.report_vat_report_base">
  13. <t t-set="title">VAT Report - <t t-raw="company_name"/> - <t t-raw="currency_name"/></t>
  14. <t t-set="company_name" t-value="company_name"/>
  15. <div class="page">
  16. <div class="row">
  17. <h4 class="mt0" t-esc="title or 'Odoo Report'" style="text-align: center;"/>
  18. </div>
  19. <!-- Display filters -->
  20. <t t-call="account_financial_report.report_vat_report_filters"/>
  21. <div class="page_break"/>
  22. <div class="act_as_table data_table" style="width: 100%;">
  23. <!-- Display table headers for lines -->
  24. <div class="act_as_thead">
  25. <div class="act_as_row labels">
  26. <!--## code-->
  27. <div class="act_as_cell first_column" style="width: 5%;">Code</div>
  28. <!--## name-->
  29. <div class="act_as_cell" style="width: 65%;">Name</div>
  30. <!--## net-->
  31. <div class="act_as_cell" style="width: 15%;">Net</div>
  32. <!--## tax-->
  33. <div class="act_as_cell" style="width: 15%;">Tax</div>
  34. </div>
  35. </div>
  36. <t t-foreach="vat_report" t-as="tag_or_group">
  37. <div class="act_as_row lines" style="font-weight: bold;">
  38. <div class="act_as_cell left oe_tooltip_string" style="width: 5%;">
  39. <!-- <span>-->
  40. <!-- <a t-att-data-active-id="res_id"-->
  41. <!-- t-att-data-res-model="res_model"-->
  42. <!-- class="o_account_financial_reports_web_action"-->
  43. <!-- t-att-style="style">-->
  44. <t t-att-style="style" t-raw="tag_or_group['code']"/>
  45. <!-- </a>-->
  46. <!-- </span>-->
  47. </div>
  48. <div class="act_as_cell left oe_tooltip_string" style="width: 65%;">
  49. <!-- <span>-->
  50. <!-- <a t-att-data-active-id="res_id"-->
  51. <!-- t-att-data-res-model="res_model"-->
  52. <!-- class="o_account_financial_reports_web_action"-->
  53. <!-- t-att-style="style">-->
  54. <t t-att-style="style" t-raw="tag_or_group['name']"/>
  55. <!-- </a>-->
  56. <!-- </span>-->
  57. </div>
  58. <div class="act_as_cell amount" style="width: 15%;">
  59. <!-- <t t-set="domain"-->
  60. <!-- t-value="[('tax_ids', 'in', [tax.tax_id.id for tax in tag.tax_ids]),-->
  61. <!-- ('date', '&gt;=', o.date_from),-->
  62. <!-- ('date', '&lt;=', o.date_to)]"/>-->
  63. <!-- <span>-->
  64. <!-- <a t-att-data-domain="domain"-->
  65. <!-- t-att-data-res-model="'account.move.line'"-->
  66. <!-- class="o_account_financial_reports_web_action_multi"-->
  67. <!-- t-att-style="style">-->
  68. <t t-att-style="style" t-raw="tag_or_group['net']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
  69. <!-- </a>-->
  70. <!-- </span>-->
  71. </div>
  72. <div class="act_as_cell amount" style="width: 15%;">
  73. <!-- <t t-set="domain"-->
  74. <!-- t-value="[('tax_line_id', 'in', [tax.tax_id.id for tax in tag.tax_ids]),-->
  75. <!-- ('date', '&gt;=', o.date_from),-->
  76. <!-- ('date', '&lt;=', o.date_to),-->
  77. <!-- ('tax_exigible', '=', True)]"/>-->
  78. <!-- <span>-->
  79. <!-- <a t-att-data-domain="domain"-->
  80. <!-- t-att-data-res-model="'account.move.line'"-->
  81. <!-- class="o_account_financial_reports_web_action_multi"-->
  82. <!-- t-att-style="style">-->
  83. <t t-att-style="style" t-raw="tag_or_group['tax']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
  84. <!-- </a>-->
  85. <!-- </span>-->
  86. </div>
  87. </div>
  88. <t t-if="tax_detail">
  89. <t t-foreach="tag_or_group['taxes']" t-as="tax">
  90. <div class="act_as_row lines">
  91. <div class="act_as_cell" style="width: 5%;"/>
  92. <div class="act_as_cell left oe_tooltip_string" style="padding-left: 20px; width: 65%;">
  93. <!-- <span>-->
  94. <!-- <a t-att-data-active-id="tax.tax_id.id"-->
  95. <!-- t-att-data-res-model="res_model"-->
  96. <!-- class="o_account_financial_reports_web_action"-->
  97. <!-- t-att-style="style">-->
  98. <t t-att-style="style" t-raw="tax['name']"/>
  99. <!-- </a>-->
  100. <!-- </span>-->
  101. </div>
  102. <div class="act_as_cell amount" style="width: 15%;">
  103. <!-- <t t-set="domain"-->
  104. <!-- t-value="[('tax_ids', 'in', tax.tax_id.ids),-->
  105. <!-- ('date', '&gt;=', o.date_from),-->
  106. <!-- ('date', '&lt;=', o.date_to),-->
  107. <!-- ('tax_exigible', '=', True)]"/>-->
  108. <!-- <span>-->
  109. <!-- <a t-att-data-domain="domain"-->
  110. <!-- t-att-data-res-model="'account.move.line'"-->
  111. <!-- class="o_account_financial_reports_web_action_multi"-->
  112. <!-- t-att-style="style">-->
  113. <t t-att-style="style" t-raw="tax['net']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
  114. <!-- </a>-->
  115. <!-- </span>-->
  116. </div>
  117. <div class="act_as_cell amount" style="width: 15%;">
  118. <!-- <t t-set="domain"-->
  119. <!-- t-value="[('tax_line_id', '=', tax.tax_id.id),-->
  120. <!-- ('date', '&gt;=', o.date_from),-->
  121. <!-- ('date', '&lt;=', o.date_to),-->
  122. <!-- ('tax_exigible', '=', True)]"/>-->
  123. <!-- <span>-->
  124. <!-- <a t-att-data-domain="domain"-->
  125. <!-- t-att-data-res-model="'account.move.line'"-->
  126. <!-- class="o_account_financial_reports_web_action_multi"-->
  127. <!-- t-att-style="style">-->
  128. <t t-att-style="style" t-raw="tax['tax']" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
  129. <!-- </a>-->
  130. <!-- </span>-->
  131. </div>
  132. </div>
  133. </t>
  134. </t>
  135. </t>
  136. </div>
  137. </div>
  138. </template>
  139. <template id="account_financial_report.report_vat_report_filters">
  140. <div class="act_as_table data_table" style="width: 100%;">
  141. <div class="act_as_row labels">
  142. <div class="act_as_cell">Date From</div>
  143. <div class="act_as_cell">Date To</div>
  144. <div class="act_as_cell">Based On</div>
  145. </div>
  146. <div class="act_as_row">
  147. <div class="act_as_cell">
  148. <span t-esc="date_from"/>
  149. </div>
  150. <div class="act_as_cell">
  151. <span t-esc="date_to"/>
  152. </div>
  153. <div class="act_as_cell">
  154. <span t-esc="based_on"/>
  155. </div>
  156. </div>
  157. </div>
  158. </template>
  159. </odoo>