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