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.

193 lines
12 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. <!-- <a t-att-data-active-id="res_id"-->
  53. <!-- t-att-data-res-model="res_model"-->
  54. <!-- class="o_account_financial_reports_web_action"-->
  55. <!-- t-att-style="style">-->
  56. <t t-att-style="style" t-raw="tag_or_group['code']" />
  57. <!-- </a>-->
  58. <!-- </span>-->
  59. </div>
  60. <div
  61. class="act_as_cell left oe_tooltip_string"
  62. style="width: 65%;"
  63. >
  64. <!-- <span>-->
  65. <!-- <a t-att-data-active-id="res_id"-->
  66. <!-- t-att-data-res-model="res_model"-->
  67. <!-- class="o_account_financial_reports_web_action"-->
  68. <!-- t-att-style="style">-->
  69. <t t-att-style="style" t-raw="tag_or_group['name']" />
  70. <!-- </a>-->
  71. <!-- </span>-->
  72. </div>
  73. <div class="act_as_cell amount" style="width: 15%;">
  74. <!-- <t t-set="domain"-->
  75. <!-- t-value="[('tax_ids', 'in', [tax.tax_id.id for tax in tag.tax_ids]),-->
  76. <!-- ('date', '&gt;=', o.date_from),-->
  77. <!-- ('date', '&lt;=', o.date_to)]"/>-->
  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
  84. t-att-style="style"
  85. t-raw="tag_or_group['net']"
  86. t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
  87. />
  88. <!-- </a>-->
  89. <!-- </span>-->
  90. </div>
  91. <div class="act_as_cell amount" style="width: 15%;">
  92. <!-- <t t-set="domain"-->
  93. <!-- t-value="[('tax_line_id', 'in', [tax.tax_id.id for tax in tag.tax_ids]),-->
  94. <!-- ('date', '&gt;=', o.date_from),-->
  95. <!-- ('date', '&lt;=', o.date_to),-->
  96. <!-- ('tax_exigible', '=', True)]"/>-->
  97. <!-- <span>-->
  98. <!-- <a t-att-data-domain="domain"-->
  99. <!-- t-att-data-res-model="'account.move.line'"-->
  100. <!-- class="o_account_financial_reports_web_action_multi"-->
  101. <!-- t-att-style="style">-->
  102. <t
  103. t-att-style="style"
  104. t-raw="tag_or_group['tax']"
  105. t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
  106. />
  107. <!-- </a>-->
  108. <!-- </span>-->
  109. </div>
  110. </div>
  111. <t t-if="tax_detail">
  112. <t t-foreach="tag_or_group['taxes']" t-as="tax">
  113. <div class="act_as_row lines">
  114. <div class="act_as_cell" style="width: 5%;" />
  115. <div
  116. class="act_as_cell left oe_tooltip_string"
  117. style="padding-left: 20px; width: 65%;"
  118. >
  119. <!-- <span>-->
  120. <!-- <a t-att-data-active-id="tax.tax_id.id"-->
  121. <!-- t-att-data-res-model="res_model"-->
  122. <!-- class="o_account_financial_reports_web_action"-->
  123. <!-- t-att-style="style">-->
  124. <t t-att-style="style" t-raw="tax['name']" />
  125. <!-- </a>-->
  126. <!-- </span>-->
  127. </div>
  128. <div class="act_as_cell amount" style="width: 15%;">
  129. <!-- <t t-set="domain"-->
  130. <!-- t-value="[('tax_ids', 'in', tax.tax_id.ids),-->
  131. <!-- ('date', '&gt;=', o.date_from),-->
  132. <!-- ('date', '&lt;=', o.date_to),-->
  133. <!-- ('tax_exigible', '=', True)]"/>-->
  134. <!-- <span>-->
  135. <!-- <a t-att-data-domain="domain"-->
  136. <!-- t-att-data-res-model="'account.move.line'"-->
  137. <!-- class="o_account_financial_reports_web_action_multi"-->
  138. <!-- t-att-style="style">-->
  139. <t
  140. t-att-style="style"
  141. t-raw="tax['net']"
  142. t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
  143. />
  144. <!-- </a>-->
  145. <!-- </span>-->
  146. </div>
  147. <div class="act_as_cell amount" style="width: 15%;">
  148. <!-- <t t-set="domain"-->
  149. <!-- t-value="[('tax_line_id', '=', tax.tax_id.id),-->
  150. <!-- ('date', '&gt;=', o.date_from),-->
  151. <!-- ('date', '&lt;=', o.date_to),-->
  152. <!-- ('tax_exigible', '=', True)]"/>-->
  153. <!-- <span>-->
  154. <!-- <a t-att-data-domain="domain"-->
  155. <!-- t-att-data-res-model="'account.move.line'"-->
  156. <!-- class="o_account_financial_reports_web_action_multi"-->
  157. <!-- t-att-style="style">-->
  158. <t
  159. t-att-style="style"
  160. t-raw="tax['tax']"
  161. t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"
  162. />
  163. <!-- </a>-->
  164. <!-- </span>-->
  165. </div>
  166. </div>
  167. </t>
  168. </t>
  169. </t>
  170. </div>
  171. </div>
  172. </template>
  173. <template id="account_financial_report.report_vat_report_filters">
  174. <div class="act_as_table data_table" style="width: 100%;">
  175. <div class="act_as_row labels">
  176. <div class="act_as_cell">Date From</div>
  177. <div class="act_as_cell">Date To</div>
  178. <div class="act_as_cell">Based On</div>
  179. </div>
  180. <div class="act_as_row">
  181. <div class="act_as_cell">
  182. <span t-esc="date_from" />
  183. </div>
  184. <div class="act_as_cell">
  185. <span t-esc="date_to" />
  186. </div>
  187. <div class="act_as_cell">
  188. <span t-esc="based_on" />
  189. </div>
  190. </div>
  191. </div>
  192. </template>
  193. </odoo>