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.

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