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.

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