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.

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