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.

686 lines
39 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="account_financial_report.report_trial_balance_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_trial_balance_base"/>
  8. </t>
  9. </t>
  10. </t>
  11. </template>
  12. <template id="account_financial_report.report_trial_balance_base">
  13. <!-- Saved flag fields into variables, used to define columns display -->
  14. <t t-set="show_partner_details" t-value="o.show_partner_details"/>
  15. <t t-set="foreign_currency" t-value="o.foreign_currency"/>
  16. <!-- Defines global variables used by internal layout -->
  17. <t t-set="title">Trial Balance</t>
  18. <t t-set="company_name" t-value="o.company_id.name"/>
  19. <t t-set="res_company" t-value="o.company_id"/>
  20. <div class="page">
  21. <!-- Display filters -->
  22. <t t-call="account_financial_report.report_trial_balance_filters"/>
  23. <div class="act_as_table list_table" style="margin-top: 10px;"/>
  24. <!-- Display account lines -->
  25. <t t-if="not show_partner_details">
  26. <div class="act_as_table data_table" style="width: 100%;">
  27. <!-- Display account header -->
  28. <t t-call="account_financial_report.report_trial_balance_lines_header"/>
  29. <!-- Display each lines -->
  30. <t t-foreach="o.account_ids.filtered(lambda a: not a.hide_line)" t-as="line">
  31. <t t-set="type" t-value='"account_type"'/>
  32. <!-- Adapt -->
  33. <t t-set="style" t-value="'font-size:8px;'"/>
  34. <t t-set="padding" t-value="line.level * 4"/>
  35. <t t-if="o.hide_account_at_0">
  36. <t t-set="style" t-value="'font-size: 14px;'"/>
  37. </t>
  38. <t t-if="o.hierarchy_on != 'none'">
  39. <t t-set="style" t-value="'font-size: ' + str(14 - line.level) + 'px; margin-left: ' + str(line.level * 4) + 'px;'"/>
  40. </t>
  41. <t t-if="line.account_group_id">
  42. <t t-set="style" t-value="style + 'font-weight: bold; color: blue;'"/>
  43. </t>
  44. <!-- Display account lines -->
  45. <t t-call="account_financial_report.report_trial_balance_line"/>
  46. <!-- Adapt style -->
  47. </t>
  48. </div>
  49. </t>
  50. <!-- Display partner lines -->
  51. <t t-if="show_partner_details">
  52. <t t-set="padding" t-value="0"/>
  53. <t t-foreach="o.account_ids" t-as="account">
  54. <div class="page_break">
  55. <t t-set="style" t-value="'font-size:8px;'"/>
  56. <t t-set="padding" t-value="account.level * 4"/>
  57. <t t-set="style" t-value="'font-size: ' + str(14 - account.level) + 'px; margin-left: ' + str(account.level * 4) + 'px;'"/>
  58. <!-- Display account header -->
  59. <div class="act_as_table list_table" style="margin-top: 10px;"/>
  60. <div class="act_as_caption account_title"
  61. style="width: 100%;">
  62. <t t-set="res_model" t-value="'account.account'"/>
  63. <span>
  64. <a t-att-data-active-id="account.account_id.id"
  65. t-att-data-res-model="res_model"
  66. class="o_account_financial_reports_web_action"
  67. t-att-style="style">
  68. <t t-raw="account.code"/> - <t t-raw="account.name"/></a>
  69. </span>
  70. </div>
  71. <div class="act_as_table data_table"
  72. style="width: 100%;">
  73. <!-- Display account/partner header -->
  74. <t t-call="account_financial_report.report_trial_balance_lines_header"/>
  75. <!-- Adapt style -->
  76. <t t-set="padding" t-value="padding+4"/>
  77. <!-- Display each partners -->
  78. <t t-foreach="account.partner_ids" t-as="line">
  79. <t t-set="type" t-value='"partner_type"'/>
  80. <!-- Display partner line -->
  81. <t t-call="account_financial_report.report_trial_balance_line"/>
  82. </t>
  83. <t t-set="padding" t-value="padding-4"/>
  84. </div>
  85. <!-- Display account footer -->
  86. <t t-set="type" t-value='"account_type"'/>
  87. <t t-call="account_financial_report.report_trial_balance_account_footer"/>
  88. </div>
  89. </t>
  90. </t>
  91. </div>
  92. </template>
  93. <template id="account_financial_report.report_trial_balance_filters">
  94. <div class="act_as_table data_table" style="width: 100%;">
  95. <div class="act_as_row labels">
  96. <div class="act_as_cell">Date range filter</div>
  97. <div class="act_as_cell">Target moves filter</div>
  98. <div class="act_as_cell">Account at 0 filter</div>
  99. <div class="act_as_cell">Limit hierarchy levels</div>
  100. </div>
  101. <div class="act_as_row">
  102. <div class="act_as_cell">
  103. From: <span t-field="o.date_from"/> To: <span t-field="o.date_to"/>
  104. </div>
  105. <div class="act_as_cell">
  106. <t t-if="o.only_posted_moves">All posted entries</t>
  107. <t t-if="not o.only_posted_moves">All entries</t>
  108. </div>
  109. <div class="act_as_cell">
  110. <t t-if="o.hide_account_at_0">Hide</t>
  111. <t t-if="not o.hide_account_at_0">Show</t>
  112. </div>
  113. <div class="act_as_cell">
  114. <t t-if="o.limit_hierarchy_level">
  115. Level <span t-field="o.show_hierarchy_level"/>
  116. </t>
  117. <t t-if="not o.limit_hierarchy_level">
  118. No limit
  119. </t>
  120. </div>
  121. </div>
  122. </div>
  123. </template>
  124. <template id="account_financial_report.report_trial_balance_lines_header">
  125. <!-- Display table headers for lines -->
  126. <div class="act_as_thead">
  127. <div class="act_as_row labels">
  128. <t t-if="not show_partner_details">
  129. <!--## Code-->
  130. <div class="act_as_cell" style="width: 8.86%;">Code</div>
  131. <!--## Account-->
  132. <div class="act_as_cell" style="width: 37.58%;">Account
  133. </div>
  134. </t>
  135. <t t-if="show_partner_details">
  136. <!--## Partner-->
  137. <div class="act_as_cell" style="width: 46.44%;">Partner
  138. </div>
  139. </t>
  140. <!--## Initial balance-->
  141. <div class="act_as_cell" style="width: 9.64%;">Initial
  142. balance</div>
  143. <!--## Debit-->
  144. <div class="act_as_cell" style="width: 9.64%;">Debit</div>
  145. <!--## Credit-->
  146. <div class="act_as_cell" style="width: 9.64%;">Credit</div>
  147. <!--## Period balance-->
  148. <div class="act_as_cell" style="width: 9.64%;">Period balance</div>
  149. <!--## Ending balance-->
  150. <div class="act_as_cell" style="width: 9.64%;">Ending balance</div>
  151. <t t-if="foreign_currency">
  152. <!--## currency_name-->
  153. <div class="act_as_cell" style="width: 4.43%;">Cur.</div>
  154. <!--## amount_currency-->
  155. <div class="act_as_cell" style="width: 8.86%;">Initial blance cur.</div>
  156. <div class="act_as_cell" style="width: 8.86%;">Ending blance cur.</div>
  157. </t>
  158. </div>
  159. </div>
  160. </template>
  161. <template id="account_financial_report.report_trial_balance_line">
  162. <!-- # line -->
  163. <div class="act_as_row lines">
  164. <t t-if="not show_partner_details">
  165. <!--## Code-->
  166. <div class="act_as_cell left">
  167. <t t-if="line.account_id">
  168. <t t-set="res_model" t-value="'account.account'"/>
  169. <span>
  170. <a t-att-data-active-id="line.account_id.id"
  171. t-att-data-res-model="res_model"
  172. class="o_account_financial_reports_web_action"
  173. t-att-style="style">
  174. <t t-att-style="style" t-raw="line.code"/></a>
  175. </span>
  176. </t>
  177. <t t-if="line.account_group_id">
  178. <t t-set="res_model" t-value="'account.group'"/>
  179. <span>
  180. <a t-att-data-active-id="line.account_group_id.id"
  181. t-att-data-res-model="res_model"
  182. class="o_account_financial_reports_web_action"
  183. t-att-style="style">
  184. <t t-att-style="style" t-raw="line.code"/></a>
  185. </span>
  186. </t>
  187. </div>
  188. </t>
  189. <!--## Account/Partner-->
  190. <div class="act_as_cell left">
  191. <t t-if="type == 'account_type'">
  192. <t t-set="account_or_partner_line" t-value="line"/>
  193. <t t-if="line.account_id">
  194. <t t-set="res_model" t-value="'account.account'"/>
  195. <span>
  196. <a t-att-data-active-id="line.account_id.id"
  197. t-att-data-res-model="res_model"
  198. class="o_account_financial_reports_web_action"
  199. t-att-style="style">
  200. <t t-att-style="style" t-raw="line.name"/></a>
  201. </span>
  202. </t>
  203. <t t-if="line.account_group_id">
  204. <t t-set="res_model" t-value="'account.group'"/>
  205. <span>
  206. <a t-att-data-active-id="line.account_group_id.id"
  207. t-att-data-res-model="res_model"
  208. class="o_account_financial_reports_web_action"
  209. t-att-style="style">
  210. <t t-att-style="style" t-raw="line.name"/></a>
  211. </span>
  212. </t>
  213. </t>
  214. <t t-if="type == 'partner_type'">
  215. <t t-set="account_or_partner_line" t-value="line.report_account_id"/>
  216. <t t-set="res_model" t-value="'res.partner'"/>
  217. <span>
  218. <a t-att-data-active-id="line.partner_id.id"
  219. t-att-data-res-model="res_model"
  220. class="o_account_financial_reports_web_action"
  221. t-att-style="style">
  222. <t t-att-style="style" t-raw="line.name"/></a>
  223. </span>
  224. </t>
  225. </div>
  226. <!--## Initial balance-->
  227. <div class="act_as_cell amount">
  228. <t t-if="type == 'account_type'">
  229. <t t-if="line.account_id">
  230. <t t-set="domain"
  231. t-value="[('account_id', '=', line.account_id.id),
  232. ('date', '&lt;', o.date_from)]"/>
  233. <span>
  234. <a t-att-data-domain="domain"
  235. t-att-data-res-model="'account.move.line'"
  236. class="o_account_financial_reports_web_action_monetary_multi"
  237. t-att-style="style">
  238. <t t-att-style="style" t-raw="line.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  239. </span>
  240. </t>
  241. <t t-if="line.account_group_id">
  242. <t t-set="domain"
  243. t-value="[('account_id', 'in', line.compute_account_ids.ids),
  244. ('date', '&lt;', o.date_from)]"/>
  245. <span>
  246. <a t-att-data-domain="domain"
  247. t-att-data-res-model="'account.move.line'"
  248. class="o_account_financial_reports_web_action_monetary_multi"
  249. t-att-style="style">
  250. <t t-att-style="style" t-raw="line.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  251. </span>
  252. </t>
  253. </t>
  254. <t t-if="type == 'partner_type'">
  255. <t t-set="domain"
  256. t-value="[('account_id', '=', line.report_account_id.account_id.id),
  257. ('partner_id', '=', line.partner_id.id),
  258. ('date', '&lt;', o.date_from)]"/>
  259. <span>
  260. <a t-att-data-domain="domain"
  261. t-att-data-res-model="'account.move.line'"
  262. class="o_account_financial_reports_web_action_monetary_multi"
  263. t-att-style="style">
  264. <t t-att-style="style" t-raw="line.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  265. </span>
  266. </t>
  267. </div>
  268. <!--## Debit-->
  269. <div class="act_as_cell amount">
  270. <t t-if="type == 'account_type'">
  271. <t t-if="line.account_id">
  272. <t t-set="domain"
  273. t-value="[('account_id', '=', line.account_id.id),
  274. ('date', '&gt;=', line.report_id.date_from),
  275. ('date', '&lt;=', line.report_id.date_to),
  276. ('debit', '&lt;&gt;', 0)]"/>
  277. <span>
  278. <a t-att-data-domain="domain"
  279. t-att-data-res-model="'account.move.line'"
  280. class="o_account_financial_reports_web_action_monetary_multi"
  281. t-att-style="style">
  282. <t t-att-style="style" t-raw="line.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  283. </span>
  284. </t>
  285. <t t-if="line.account_group_id">
  286. <t t-set="domain"
  287. t-value="[('account_id', 'in', line.compute_account_ids.ids),
  288. ('date', '&gt;=', line.report_id.date_from),
  289. ('date', '&lt;=', line.report_id.date_to),
  290. ('debit', '&lt;&gt;', 0)]"/>
  291. <span>
  292. <a t-att-data-domain="domain"
  293. t-att-data-res-model="'account.move.line'"
  294. class="o_account_financial_reports_web_action_monetary_multi"
  295. t-att-style="style">
  296. <t t-att-style="style" t-raw="line.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  297. </span>
  298. </t>
  299. </t>
  300. <t t-if="type == 'partner_type'">
  301. <t t-set="domain"
  302. t-value="[('account_id', '=', line.report_account_id.account_id.id),
  303. ('partner_id', '=', line.partner_id.id),
  304. ('date', '&gt;=', line.report_account_id.report_id.date_from),
  305. ('date', '&lt;=', line.report_account_id.report_id.date_to),
  306. ('debit', '&lt;&gt;', 0)]"/>
  307. <span>
  308. <a t-att-data-domain="domain"
  309. t-att-data-res-model="'account.move.line'"
  310. class="o_account_financial_reports_web_action_monetary_multi"
  311. t-att-style="style">
  312. <t t-att-style="style" t-raw="line.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  313. </span>
  314. </t>
  315. </div>
  316. <!--## Credit-->
  317. <div class="act_as_cell amount">
  318. <t t-if="type == 'account_type'">
  319. <t t-if="line.account_id">
  320. <t t-set="domain"
  321. t-value="[('account_id', '=', line.account_id.id),
  322. ('date', '&gt;=', line.report_id.date_from),
  323. ('date', '&lt;=', line.report_id.date_to),
  324. ('credit', '&lt;&gt;', 0)]"/>
  325. <span>
  326. <a t-att-data-domain="domain"
  327. t-att-data-res-model="'account.move.line'"
  328. class="o_account_financial_reports_web_action_monetary_multi"
  329. t-att-style="style">
  330. <t t-att-style="style" t-raw="line.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  331. </span>
  332. </t>
  333. <t t-if="line.account_group_id">
  334. <t t-set="domain"
  335. t-value="[('account_id', 'in', line.compute_account_ids.ids),
  336. ('date', '&gt;=', line.report_id.date_from),
  337. ('date', '&lt;=', line.report_id.date_to),
  338. ('credit', '&lt;&gt;', 0)]"/>
  339. <span>
  340. <a t-att-data-domain="domain"
  341. t-att-data-res-model="'account.move.line'"
  342. class="o_account_financial_reports_web_action_monetary_multi"
  343. t-att-style="style">
  344. <t t-att-style="style" t-raw="line.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  345. </span>
  346. </t>
  347. </t>
  348. <t t-if="type == 'partner_type'">
  349. <t t-set="domain"
  350. t-value="[('account_id', '=', line.report_account_id.account_id.id),
  351. ('partner_id', '=', line.partner_id.id),
  352. ('date', '&gt;=', line.report_account_id.report_id.date_from),
  353. ('date', '&lt;=', line.report_account_id.report_id.date_to),
  354. ('credit', '&lt;&gt;', 0)]"/>
  355. <span>
  356. <a t-att-data-domain="domain"
  357. t-att-data-res-model="'account.move.line'"
  358. class="o_account_financial_reports_web_action_monetary_multi"
  359. t-att-style="style">
  360. <t t-att-style="style" t-raw="line.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  361. </span>
  362. </t>
  363. </div>
  364. <!--## Period balance-->
  365. <div class="act_as_cell amount">
  366. <t t-if="type == 'account_type'">
  367. <t t-if="line.account_id">
  368. <t t-set="domain"
  369. t-value="[('account_id', '=', line.account_id.id),
  370. ('date', '&gt;=', line.report_id.date_from),
  371. ('date', '&lt;=', line.report_id.date_to)]"/>
  372. <span>
  373. <a t-att-data-domain="domain"
  374. t-att-data-res-model="'account.move.line'"
  375. class="o_account_financial_reports_web_action_monetary_multi"
  376. t-att-style="style">
  377. <t t-att-style="style" t-raw="line.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  378. </span>
  379. </t>
  380. <t t-if="line.account_group_id">
  381. <t t-set="domain"
  382. t-value="[('account_id', 'in', line.compute_account_ids.ids),
  383. ('date', '&gt;=', line.report_id.date_from),
  384. ('date', '&lt;=', line.report_id.date_to)]"/>
  385. <span>
  386. <a t-att-data-domain="domain"
  387. t-att-data-res-model="'account.move.line'"
  388. class="o_account_financial_reports_web_action_multi"
  389. t-att-style="style">
  390. <t t-att-style="style" t-raw="line.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  391. </span>
  392. </t>
  393. </t>
  394. <t t-if="type == 'partner_type'">
  395. <t t-set="domain"
  396. t-value="[('account_id', '=', line.report_account_id.account_id.id),
  397. ('partner_id', '=', line.partner_id.id),
  398. ('date', '&gt;=', line.report_account_id.report_id.date_from),
  399. ('date', '&lt;=', line.report_account_id.report_id.date_to)]"/>
  400. <span>
  401. <a t-att-data-domain="domain"
  402. t-att-data-res-model="'account.move.line'"
  403. class="o_account_financial_reports_web_action_monetary_multi"
  404. t-att-style="style">
  405. <t t-att-style="style" t-raw="line.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  406. </span>
  407. </t>
  408. </div>
  409. <!--## Ending balance-->
  410. <div class="act_as_cell amount">
  411. <t t-if="type == 'account_type'">
  412. <t t-if="line.account_id">
  413. <t t-set="domain"
  414. t-value="[('account_id', '=', line.account_id.id)]"/>
  415. <span>
  416. <a t-att-data-domain="domain"
  417. t-att-data-res-model="'account.move.line'"
  418. class="o_account_financial_reports_web_action_monetary_multi"
  419. t-att-style="style">
  420. <t t-att-style="style" t-raw="line.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  421. </span>
  422. </t>
  423. <t t-if="line.account_group_id">
  424. <t t-set="domain"
  425. t-value="[('account_id', 'in', line.compute_account_ids.ids)]"/>
  426. <span>
  427. <a t-att-data-domain="domain"
  428. t-att-data-res-model="'account.move.line'"
  429. class="o_account_financial_reports_web_action_monetary_multi"
  430. t-att-style="style">
  431. <t t-att-style="style" t-raw="line.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  432. </span>
  433. </t>
  434. </t>
  435. <t t-if="type == 'partner_type'">
  436. <t t-set="domain"
  437. t-value="[('account_id', '=', line.report_account_id.account_id.id),
  438. ('partner_id', '=', line.partner_id.id)]"/>
  439. <span>
  440. <a t-att-data-domain="domain"
  441. t-att-data-res-model="'account.move.line'"
  442. class="o_account_financial_reports_web_action_monetary_multi"
  443. t-att-style="style">
  444. <t t-att-style="style" t-raw="line.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  445. </span>
  446. </t>
  447. </div>
  448. <t t-if="foreign_currency">
  449. <t t-if="account_or_partner_line.currency_id">
  450. <!--## currency_name-->
  451. <div class="act_as_cell" style="width: 4.43%;">
  452. <span t-field="account_or_partner_line.currency_id.display_name"/>
  453. </div>
  454. <!--## Initial balance cur.-->
  455. <div class="act_as_cell amount">
  456. <t t-if="type == 'account_type'">
  457. <t t-if="line.account_id">
  458. <t t-set="domain"
  459. t-value="[('account_id', '=', line.account_id.id)]"/>
  460. <span>
  461. <a t-att-data-domain="domain"
  462. t-att-data-res-model="'account.move.line'"
  463. class="o_account_financial_reports_web_action_monetary_multi"
  464. t-att-style="style">
  465. <t t-att-style="style" t-raw="line.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>
  466. </span>
  467. </t>
  468. <t t-if="line.account_group_id">
  469. <t t-set="domain"
  470. t-value="[('account_id', 'in', line.compute_account_ids.ids)]"/>
  471. <span>
  472. <a t-att-data-domain="domain"
  473. t-att-data-res-model="'account.move.line'"
  474. class="o_account_financial_reports_web_action_monetary_multi"
  475. t-att-style="style">
  476. <t t-att-style="style" t-raw="line.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>
  477. </span>
  478. </t>
  479. </t>
  480. <t t-if="type == 'partner_type'">
  481. <t t-set="domain"
  482. t-value="[('account_id', '=', line.report_account_id.account_id.id),
  483. ('partner_id', '=', line.partner_id.id)]"/>
  484. <span>
  485. <a t-att-data-domain="domain"
  486. t-att-data-res-model="'account.move.line'"
  487. class="o_account_financial_reports_web_action_monetary_multi"
  488. t-att-style="style">
  489. <t t-att-style="style" t-raw="line.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.report_account_id.currency_id}"/></a>
  490. </span>
  491. </t>
  492. </div>
  493. <!--## Ending balance cur.-->
  494. <div class="act_as_cell amount">
  495. <t t-if="type == 'account_type'">
  496. <t t-if="line.account_id">
  497. <t t-set="domain"
  498. t-value="[('account_id', '=', line.account_id.id)]"/>
  499. <span>
  500. <a t-att-data-domain="domain"
  501. t-att-data-res-model="'account.move.line'"
  502. class="o_account_financial_reports_web_action_monetary_multi"
  503. t-att-style="style">
  504. <t t-att-style="style" t-raw="line.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>
  505. </span>
  506. </t>
  507. <t t-if="line.account_group_id">
  508. <t t-set="domain"
  509. t-value="[('account_id', 'in', line.compute_account_ids.ids)]"/>
  510. <span>
  511. <a t-att-data-domain="domain"
  512. t-att-data-res-model="'account.move.line'"
  513. class="o_account_financial_reports_web_action_monetary_multi"
  514. t-att-style="style">
  515. <t t-att-style="style" t-raw="line.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>
  516. </span>
  517. </t>
  518. </t>
  519. <t t-if="type == 'partner_type'">
  520. <t t-set="domain"
  521. t-value="[('account_id', '=', line.report_account_id.account_id.id),
  522. ('partner_id', '=', line.partner_id.id)]"/>
  523. <span>
  524. <a t-att-data-domain="domain"
  525. t-att-data-res-model="'account.move.line'"
  526. class="o_account_financial_reports_web_action_monetary_multi"
  527. t-att-style="style">
  528. <t t-att-style="style" t-raw="line.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': line.report_account_id.currency_id}"/></a>
  529. </span>
  530. </t>
  531. </div>
  532. </t>
  533. <t t-if="not account_or_partner_line.currency_id.id">
  534. <!--## balance_currency-->
  535. <div class="act_as_cell"/>
  536. <div class="act_as_cell"/>
  537. <div class="act_as_cell"/>
  538. </t>
  539. </t>
  540. </div>
  541. </template>
  542. <template id="account_financial_report.report_trial_balance_account_footer">
  543. <!-- Display account footer -->
  544. <div class="act_as_table list_table" style="width: 100%;">
  545. <div class="act_as_row labels" style="font-weight: bold;">
  546. <!--## Account-->
  547. <div class="act_as_cell left" style="width: 61.44%;">
  548. <t t-set="res_model" t-value="'account.account'"/>
  549. <span>
  550. <a t-att-data-active-id="account.account_id.id"
  551. t-att-data-res-model="res_model"
  552. class="o_account_financial_reports_web_action"
  553. t-att-style="style">
  554. <t t-att-style="style" t-raw="account.code"/> - <t t-att-style="style" t-raw="account.name"/></a>
  555. </span>
  556. </div>
  557. <!--## Initial balance-->
  558. <div class="act_as_cell amount" style="width: 9.64%;">
  559. <t t-set="domain"
  560. t-value="[('account_id', '=', account.account_id.id),
  561. ('date', '&lt;', o.date_from)]"/>
  562. <span>
  563. <a t-att-data-domain="domain"
  564. t-att-data-res-model="'account.move.line'"
  565. class="o_account_financial_reports_web_action_monetary_multi"
  566. t-att-style="style">
  567. <t t-att-style="style" t-raw="account.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  568. </span>
  569. </div>
  570. <!--## Debit-->
  571. <div class="act_as_cell amount" style="width: 9.64%;">
  572. <t t-set="domain"
  573. t-value="[('account_id', '=', account.account_id.id),
  574. ('date', '&gt;=', account.report_id.date_from),
  575. ('date', '&lt;=', account.report_id.date_to),
  576. ('debit', '&lt;&gt;', 0)]"/>
  577. <span>
  578. <a t-att-data-domain="domain"
  579. t-att-data-res-model="'account.move.line'"
  580. class="o_account_financial_reports_web_action_monetary_multi"
  581. t-att-style="style">
  582. <t t-att-style="style" t-raw="account.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  583. </span>
  584. </div>
  585. <!--## Credit-->
  586. <div class="act_as_cell amount" style="width: 9.64%;">
  587. <t t-set="domain"
  588. t-value="[('account_id', '=', account.account_id.id),
  589. ('date', '&gt;=', account.report_id.date_from),
  590. ('date', '&lt;=', account.report_id.date_to),
  591. ('credit', '&lt;&gt;', 0)]"/>
  592. <span>
  593. <a t-att-data-domain="domain"
  594. t-att-data-res-model="'account.move.line'"
  595. class="o_account_financial_reports_web_action_monetary_multi"
  596. t-att-style="style">
  597. <t t-att-style="style" t-raw="account.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  598. </span>
  599. </div>
  600. <!--## Period Balance -->
  601. <div class="act_as_cell amount" style="width: 9.64%;">
  602. <t t-set="domain"
  603. t-value="[('account_id', '=', account.account_id.id),
  604. ('date', '&gt;=', account.report_id.date_from),
  605. ('date', '&lt;=', account.report_id.date_to),
  606. ('period_balance', '&lt;&gt;', 0)]"/>
  607. <span>
  608. <a t-att-data-domain="domain"
  609. t-att-data-res-model="'account.move.line'"
  610. class="o_account_financial_reports_web_action_monetary_multi"
  611. t-att-style="style">
  612. <t t-att-style="style" t-raw="account.period_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  613. </span>
  614. </div>
  615. <!--## Ending balance-->
  616. <div class="act_as_cell amount" style="width: 9.64%;">
  617. <t t-set="domain"
  618. t-value="[('account_id', '=', account.account_id.id)]"/>
  619. <span>
  620. <a t-att-data-domain="domain"
  621. t-att-data-res-model="'account.move.line'"
  622. class="o_account_financial_reports_web_action_monetary_multi"
  623. t-att-style="style" >
  624. <t t-att-style="style" t-raw="account.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  625. </span>
  626. </div>
  627. <t t-if="foreign_currency">
  628. <t t-if="account.currency_id.id">
  629. <!--## currency_name-->
  630. <div class="act_as_cell" style="width: 4.43%;">
  631. <t t-set="domain"
  632. t-value="[('account_id', '=', account.account_id.id)]"/>
  633. <span t-field="account.currency_id.display_name"/>
  634. </div>
  635. <!--## balance_currency-->
  636. <div class="act_as_cell amount" style="width: 8.86%;">
  637. <t t-set="domain"
  638. t-value="[('account_id', '=', account.account_id.id),
  639. ('date', '&lt;', o.date_from)]"/>
  640. <span>
  641. <a t-att-data-domain="domain"
  642. t-att-data-res-model="'account.move.line'"
  643. class="o_account_financial_reports_web_action_monetary_multi"
  644. t-att-style="style">
  645. <t t-att-style="style" t-raw="account.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>
  646. </span>
  647. </div>
  648. <div class="act_as_cell amount" style="width: 8.86%;">
  649. <t t-set="domain"
  650. t-value="[('account_id', '=', account.account_id.id)]"/>
  651. <span>
  652. <a t-att-data-domain="domain"
  653. t-att-data-res-model="'account.move.line'"
  654. class="o_account_financial_reports_web_action_monetary_multi"
  655. t-att-style="style" >
  656. <t t-att-style="style" t-raw="account.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>
  657. </span>
  658. </div>
  659. </t>
  660. <t t-if="not account.currency_id.id">
  661. <div class="act_as_cell" style="width: 4.43%;"/>
  662. <div class="act_as_cell" style="width: 8.86%;"/>
  663. <div class="act_as_cell" style="width: 8.86%;"/>
  664. </t>
  665. </t>
  666. </div>
  667. </div>
  668. </template>
  669. </odoo>