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.

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