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.

167 lines
9.3 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="account_financial_report.report_vat_report_qweb">
  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="o.company_id.name"/> - <t t-raw="o.company_id.currency_id.name"/></t>
  14. <t t-set="company_name" t-value="o.company_id.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="o.taxtags_ids" t-as="tag">
  37. <div class="act_as_row lines" style="font-weight: bold;">
  38. <t t-if="tag.taxtag_id">
  39. <t t-set="res_model" t-value="'account.account.tag'"/>
  40. <t t-set="res_id" t-value="tag.taxtag_id.id"/>
  41. </t>
  42. <t t-if="tag.taxgroup_id">
  43. <t t-set="res_model" t-value="'account.tax.group'"/>
  44. <t t-set="res_id" t-value="tag.taxgroup_id.id"/>
  45. </t>
  46. <div class="act_as_cell left oe_tooltip_string" style="width: 5%;">
  47. <span>
  48. <a t-att-data-active-id="res_id"
  49. t-att-data-res-model="res_model"
  50. class="o_account_financial_reports_web_action"
  51. t-att-style="style">
  52. <t t-att-style="style" t-raw="tag.code"/></a>
  53. </span>
  54. </div>
  55. <div class="act_as_cell left oe_tooltip_string" style="width: 65%;">
  56. <span>
  57. <a t-att-data-active-id="res_id"
  58. t-att-data-res-model="res_model"
  59. class="o_account_financial_reports_web_action"
  60. t-att-style="style"><t t-att-style="style" t-raw="tag.name"/></a>
  61. </span>
  62. </div>
  63. <div class="act_as_cell amount" style="width: 15%;">
  64. <t t-set="domain"
  65. t-value="[('tax_ids', 'in', [tax.tax_id.id for tax in tag.tax_ids]),
  66. ('date', '&gt;=', o.date_from),
  67. ('date', '&lt;=', o.date_to)]"/>
  68. <span>
  69. <a t-att-data-domain="domain"
  70. t-att-data-res-model="'account.move.line'"
  71. class="o_account_financial_reports_web_action_multi"
  72. t-att-style="style">
  73. <t t-att-style="style" t-raw="tag.net"
  74. t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  75. </span>
  76. </div>
  77. <div class="act_as_cell amount" style="width: 15%;">
  78. <t t-set="domain"
  79. t-value="[('tax_line_id', 'in', [tax.tax_id.id for tax in tag.tax_ids]),
  80. ('date', '&gt;=', o.date_from),
  81. ('date', '&lt;=', o.date_to),
  82. ('tax_exigible', '=', True)]"/>
  83. <span>
  84. <a t-att-data-domain="domain"
  85. t-att-data-res-model="'account.move.line'"
  86. class="o_account_financial_reports_web_action_multi"
  87. t-att-style="style">
  88. <t t-att-style="style" t-raw="tag.tax"
  89. t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  90. </span>
  91. </div>
  92. </div>
  93. <t t-if="o.tax_detail">
  94. <t t-foreach="tag.tax_ids" t-as="tax">
  95. <t t-set="res_model" t-value="'account.tax'"/>
  96. <div class="act_as_row lines">
  97. <div class="act_as_cell" style="width: 5%;"/>
  98. <div class="act_as_cell left oe_tooltip_string" style="padding-left: 20px; width: 65%;">
  99. <span>
  100. <a t-att-data-active-id="tax.tax_id.id"
  101. t-att-data-res-model="res_model"
  102. class="o_account_financial_reports_web_action"
  103. t-att-style="style"><t t-att-style="style" t-raw="tax.name"/></a>
  104. </span>
  105. </div>
  106. <div class="act_as_cell amount" style="width: 15%;">
  107. <t t-set="domain"
  108. t-value="[('tax_ids', 'in', tax.tax_id.ids),
  109. ('date', '&gt;=', o.date_from),
  110. ('date', '&lt;=', o.date_to),
  111. ('tax_exigible', '=', True)]"/>
  112. <span>
  113. <a t-att-data-domain="domain"
  114. t-att-data-res-model="'account.move.line'"
  115. class="o_account_financial_reports_web_action_multi"
  116. t-att-style="style">
  117. <t t-att-style="style" t-raw="tax.net"
  118. t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  119. </span>
  120. </div>
  121. <div class="act_as_cell amount" style="width: 15%;">
  122. <t t-set="domain"
  123. t-value="[('tax_line_id', '=', tax.tax_id.id),
  124. ('date', '&gt;=', o.date_from),
  125. ('date', '&lt;=', o.date_to),
  126. ('tax_exigible', '=', True)]"/>
  127. <span>
  128. <a t-att-data-domain="domain"
  129. t-att-data-res-model="'account.move.line'"
  130. class="o_account_financial_reports_web_action_multi"
  131. t-att-style="style">
  132. <t t-att-style="style" t-raw="tax.tax"
  133. t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  134. </span>
  135. </div>
  136. </div>
  137. </t>
  138. </t>
  139. </t>
  140. </div>
  141. </div>
  142. </template>
  143. <template id="account_financial_report.report_vat_report_filters">
  144. <div class="act_as_table data_table" style="width: 100%;">
  145. <div class="act_as_row labels">
  146. <div class="act_as_cell">Date From</div>
  147. <div class="act_as_cell">Date To</div>
  148. <div class="act_as_cell">Based On</div>
  149. </div>
  150. <div class="act_as_row">
  151. <div class="act_as_cell">
  152. <span t-field="o.date_from"/>
  153. </div>
  154. <div class="act_as_cell">
  155. <span t-field="o.date_to"/>
  156. </div>
  157. <div class="act_as_cell">
  158. <span t-field="o.based_on"/>
  159. </div>
  160. </div>
  161. </div>
  162. </template>
  163. </odoo>