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.

568 lines
32 KiB

8 years ago
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <template id="report_general_ledger_qweb">
  4. <t t-call="report.html_container">
  5. <t t-foreach="docs" t-as="o">
  6. <t t-set="show_analytic_tags" t-value="o.show_analytic_tags"/>
  7. <t t-call="account_financial_report_qweb.internal_layout">
  8. <t t-call="account_financial_report_qweb.report_general_ledger_base"/>
  9. </t>
  10. </t>
  11. </t>
  12. </template>
  13. <template id="report_general_ledger_base">
  14. <!-- Saved flag fields into variables, used to define columns display -->
  15. <t t-set="show_cost_center" t-value="o.show_cost_center"/>
  16. <t t-set="foreign_currency" t-value="o.foreign_currency"/>
  17. <!-- Defines global variables used by internal layout -->
  18. <t t-set="title" style="text-align: center;">General Ledger - <t t-raw="o.company_id.name"/> - <t t-raw="o.company_id.currency_id.name"/></t>
  19. <t t-set="res_company" t-value="o.company_id"/>
  20. <div class="page">
  21. <div class="row">
  22. <h4 class="mt0" t-esc="title or 'Odoo Report'" style="text-align: center;"/>
  23. </div>
  24. <!-- Display filters -->
  25. <t t-call="account_financial_report_qweb.report_general_ledger_filters"/>
  26. <t t-foreach="o.account_ids" t-as="account">
  27. <div class="page_break">
  28. <!-- Display account header -->
  29. <div class="act_as_table list_table" style="margin-top: 10px;"/>
  30. <div class="act_as_caption account_title"
  31. style="width: 100%">
  32. <span t-field="account.code"/> - <span t-field="account.name"/>
  33. </div>
  34. <t t-if="not account.partner_ids">
  35. <!-- Display account move lines without partner regroup -->
  36. <t t-set="type" t-value='"account_type"'/>
  37. <t t-call="account_financial_report_qweb.report_general_ledger_lines">
  38. <t t-set="account_or_partner_object" t-value="account"/>
  39. </t>
  40. </t>
  41. <t t-if="account.partner_ids">
  42. <!-- Display account partners -->
  43. <t t-foreach="account.partner_ids" t-as="partner">
  44. <t t-set="type" t-value='"partner_type"'/>
  45. <div class="page_break">
  46. <!-- Display partner header -->
  47. <div class="act_as_caption account_title">
  48. <span t-field="partner.name"/>
  49. </div>
  50. <!-- Display partner move lines -->
  51. <t t-call="account_financial_report_qweb.report_general_ledger_lines">
  52. <t t-set="account_or_partner_object" t-value="partner"/>
  53. </t>
  54. <!-- Display partner footer -->
  55. <t t-call="account_financial_report_qweb.report_general_ledger_ending_cumul">
  56. <t t-set="account_or_partner_object" t-value="partner"/>
  57. <t t-set="type" t-value='"partner_type"'/>
  58. </t>
  59. </div>
  60. </t>
  61. </t>
  62. <!-- Display account footer -->
  63. <t t-call="account_financial_report_qweb.report_general_ledger_ending_cumul">
  64. <t t-set="account_or_partner_object" t-value="account"/>
  65. <t t-set="type" t-value='"account_type"'/>
  66. </t>
  67. </div>
  68. </t>
  69. </div>
  70. </template>
  71. <template id="account_financial_report_qweb.report_general_ledger_filters">
  72. <div class="act_as_table data_table" style="width: 100%;">
  73. <div class="act_as_row labels">
  74. <div class="act_as_cell">Date range filter</div>
  75. <div class="act_as_cell">Target moves filter</div>
  76. <div class="act_as_cell">Account balance at 0 filter</div>
  77. <div class="act_as_cell">Centralize filter</div>
  78. <div class="act_as_cell">Show analytic tags</div>
  79. </div>
  80. <div class="act_as_row">
  81. <div class="act_as_cell">
  82. From: <span t-field="o.date_from"/> To: <span t-field="o.date_to"/>
  83. </div>
  84. <div class="act_as_cell">
  85. <t t-if="o.only_posted_moves">All posted entries</t>
  86. <t t-if="not o.only_posted_moves">All entries</t>
  87. </div>
  88. <div class="act_as_cell">
  89. <t t-if="o.hide_account_at_0">Hide</t>
  90. <t t-if="not o.hide_account_at_0">Show</t>
  91. </div>
  92. <div class="act_as_cell">
  93. <t t-if="o.centralize">Yes</t>
  94. <t t-if="not o.centralize">No</t>
  95. </div>
  96. <div class="act_as_cell">
  97. <t t-if="o.show_analytic_tags">Yes</t>
  98. <t t-if="not o.show_analytic_tags">No</t>
  99. </div>
  100. </div>
  101. </div>
  102. </template>
  103. <template id="account_financial_report_qweb.report_general_ledger_lines">
  104. <div class="act_as_table data_table" style="width: 100%;">
  105. <!-- Display table headers for lines -->
  106. <div class="act_as_thead">
  107. <div class="act_as_row labels">
  108. <!--## date-->
  109. <div class="act_as_cell first_column" style="width: 5.74%;">
  110. Date</div>
  111. <!--## move-->
  112. <div class="act_as_cell" style="width: 8.77%">Entry</div>
  113. <!--## journal-->
  114. <div class="act_as_cell" style="width: 4.13%;">Journal</div>
  115. <!--## account code-->
  116. <div class="act_as_cell" style="width: 4.70%;">Account</div>
  117. <!--## account code-->
  118. <div class="act_as_cell" style="width: 8.89%;">Taxes</div>
  119. <!--## partner-->
  120. <div class="act_as_cell" style="width: 10.0%;">Partner
  121. </div>
  122. <!--## ref - label-->
  123. <div class="act_as_cell" style="width: 17.0%;">Ref -
  124. Label</div>
  125. <t t-if="show_cost_center">
  126. <!--## cost_center-->
  127. <div class="act_as_cell" style="width: 7.03%;">Cost
  128. center</div>
  129. </t>
  130. <t t-if="show_analytic_tags">
  131. <!--## analytic tags-->
  132. <div class="act_as_cell" style="width: 4.75%;">Tags</div>
  133. </t>
  134. <!--## matching_number-->
  135. <div class="act_as_cell" style="width: 2.41%;">Rec.</div>
  136. <!--## debit-->
  137. <div class="act_as_cell amount" style="width: 8.02%;">Debit</div>
  138. <!--## credit-->
  139. <div class="act_as_cell amount" style="width: 8.02%;">Credit</div>
  140. <!--## balance cumulated-->
  141. <div class="act_as_cell amount" style="width: 8.02%;">Cumul. Bal.</div>
  142. <t t-if="foreign_currency">
  143. <!--## currency_name-->
  144. <div class="act_as_cell" style="width: 2.08%;">Cur.</div>
  145. <!--## amount_currency-->
  146. <div class="act_as_cell amount" style="width: 5.19%;">Amount cur.</div>
  147. </t>
  148. </div>
  149. </div>
  150. <!-- Display first line with initial balance -->
  151. <div class="act_as_row lines">
  152. <!--## date-->
  153. <div class="act_as_cell"/>
  154. <!--## move-->
  155. <div class="act_as_cell"/>
  156. <!--## journal-->
  157. <div class="act_as_cell"/>
  158. <!--## account code-->
  159. <div class="act_as_cell"/>
  160. <!--## taxes-->
  161. <div class="act_as_cell"/>
  162. <!--## partner-->
  163. <div class="act_as_cell"/>
  164. <!--## ref - label-->
  165. <div class="act_as_cell amount">Initial balance</div>
  166. <t t-if="show_cost_center">
  167. <!--## cost_center-->
  168. <div class="act_as_cell"/>
  169. </t>
  170. <t t-if="show_analytic_tags">
  171. <!--## analytic tags-->
  172. <div class="act_as_cell"></div>
  173. </t>
  174. <!--## matching_number-->
  175. <div class="act_as_cell"/>
  176. <!--## debit-->
  177. <div class="act_as_cell amount">
  178. <t t-if="type == 'account_type'">
  179. <t t-set="domain"
  180. t-value="[('account_id', '=', account_or_partner_object.account_id.id),
  181. ('date', '&lt;', o.date_from),
  182. ('debit', '&lt;&gt;', 0)]"/>
  183. <span>
  184. <a t-att-data-domain="domain"
  185. t-att-data-res-model="'account.move.line'"
  186. class="o_account_financial_reports_web_action_monetary_multi underline-on-hover"
  187. style="color: black; cursor: pointer;">
  188. <t t-raw="account_or_partner_object.initial_debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  189. </span>
  190. </t>
  191. <t t-if="type == 'partner_type'">
  192. <t t-set="domain"
  193. t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
  194. ('partner_id', '=', account_or_partner_object.partner_id.id),
  195. ('date', '&lt;', o.date_from),
  196. ('debit', '&lt;&gt;', 0)]"/>
  197. <span>
  198. <a t-att-data-domain="domain"
  199. t-att-data-res-model="'account.move.line'"
  200. class="o_account_financial_reports_web_action_monetary_multi underline-on-hover"
  201. style="color: black; cursor: pointer;">
  202. <t t-raw="account_or_partner_object.initial_debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  203. </span>
  204. </t>
  205. </div>
  206. <!--## credit-->
  207. <div class="act_as_cell amount">
  208. <t t-if="type == 'account_type'">
  209. <t t-set="domain"
  210. t-value="[('account_id', '=', account_or_partner_object.account_id.id),
  211. ('date', '&lt;', o.date_from),
  212. ('credit', '&lt;&gt;', 0)]"/>
  213. <span>
  214. <a t-att-data-domain="domain"
  215. t-att-data-res-model="'account.move.line'"
  216. class="o_account_financial_reports_web_action_monetary_multi underline-on-hover"
  217. style="color: black; cursor: pointer;">
  218. <t t-raw="account_or_partner_object.initial_credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  219. </span>
  220. </t>
  221. <t t-if="type == 'partner_type'">
  222. <t t-set="domain"
  223. t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
  224. ('partner_id', '=', account_or_partner_object.partner_id.id),
  225. ('date', '&lt;', o.date_from),
  226. ('credit', '&lt;&gt;', 0)]"/>
  227. <span>
  228. <a t-att-data-domain="domain"
  229. t-att-data-res-model="'account.move.line'"
  230. class="o_account_financial_reports_web_action_monetary_multi underline-on-hover"
  231. style="color: black; cursor: pointer;">
  232. <t t-raw="account_or_partner_object.initial_credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  233. </span>
  234. </t>
  235. </div>
  236. <!--## balance cumulated-->
  237. <div class="act_as_cell amount">
  238. <t t-if="type == 'account_type'">
  239. <t t-set="domain"
  240. t-value="[('account_id', '=', account_or_partner_object.account_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 underline-on-hover"
  246. style="color: black; cursor: pointer;">
  247. <t t-raw="account_or_partner_object.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  248. </span>
  249. </t>
  250. <t t-if="type == 'partner_type'">
  251. <t t-set="domain"
  252. t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
  253. ('partner_id', '=', account_or_partner_object.partner_id.id),
  254. ('date', '&lt;', o.date_from)]"/>
  255. <span>
  256. <a t-att-data-domain="domain"
  257. t-att-data-res-model="'account.move.line'"
  258. class="o_account_financial_reports_web_action_monetary_multi underline-on-hover"
  259. style="color: black; cursor: pointer;">
  260. <t t-raw="account_or_partner_object.initial_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  261. </span>
  262. </t>
  263. </div>
  264. <t t-if="foreign_currency">
  265. <t t-if="account.account_id.currency_id.id">
  266. <div class="act_as_cell amount" style="width: 2.08%;">
  267. <span t-field="account.account_id.currency_id.display_name"/>
  268. </div>
  269. <div class="act_as_cell amount" style="width: 5.19%;">
  270. <t t-if="type == 'account_type'">
  271. <t t-set="domain"
  272. t-value="[('account_id', '=', account_or_partner_object.account_id.id),
  273. ('date', '&lt;', o.date_from)]"/>
  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. style="color: black;">
  279. <t t-raw="account_or_partner_object.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>
  280. </span>
  281. </t>
  282. <t t-if="type == 'partner_type'">
  283. <t t-set="domain"
  284. t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
  285. ('partner_id', '=', account_or_partner_object.partner_id.id),
  286. ('date', '&lt;', o.date_from)]"/>
  287. <span>
  288. <a t-att-data-domain="domain"
  289. t-att-data-res-model="'account.move.line'"
  290. class="o_account_financial_reports_web_action_monetary_multi"
  291. style="color: black;">
  292. <t t-raw="account_or_partner_object.initial_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account.account_id.currency_id}"/></a>
  293. </span>
  294. </t>
  295. </div>
  296. </t>
  297. <t t-if="not account.account_id.currency_id.id">
  298. <div class="act_as_cell" style="width: 2.08%;"/>
  299. <div class="act_as_cell" style="width: 5.19%;"/>
  300. </t>
  301. </t>
  302. </div>
  303. <!-- Display each lines -->
  304. <t t-foreach="account_or_partner_object.move_line_ids" t-as="line">
  305. <!-- # lines or centralized lines -->
  306. <div class="act_as_row lines">
  307. <!--## date-->
  308. <div class="act_as_cell left">
  309. <t t-set="res_model" t-value="'account.move.line'"/>
  310. <span>
  311. <a t-att-data-active-id="line.move_line_id.id"
  312. t-att-data-res-model="res_model"
  313. class="o_account_financial_reports_web_action underline-on-hover"
  314. style="color: black; cursor: pointer;">
  315. <!--## We don't use t-field because it throws an error on click -->
  316. <t t-esc="line.date" t-options="{'widget': 'date'}"/></a>
  317. </span>
  318. </div>
  319. <!--## move-->
  320. <div class="act_as_cell left">
  321. <t t-set="res_model" t-value="'account.move'"/>
  322. <span>
  323. <a t-att-data-active-id="line.move_line_id.move_id.id"
  324. t-att-data-res-model="res_model"
  325. class="o_account_financial_reports_web_action underline-on-hover"
  326. t-att-style="style">
  327. <t t-att-style="style" t-raw="line.entry"/></a>
  328. </span>
  329. </div>
  330. <!--## journal-->
  331. <div class="act_as_cell left">
  332. <t t-set="res_model" t-value="'account.journal'"/>
  333. <span>
  334. <a t-att-data-active-id="line.move_line_id.move_id.journal_id.id"
  335. t-att-data-res-model="res_model"
  336. class="o_account_financial_reports_web_action underline-on-hover"
  337. style="color: black; cursor: pointer;">
  338. <t t-raw="line.journal"/></a>
  339. </span>
  340. </div>
  341. <!--## account code-->
  342. <div class="act_as_cell left">
  343. <t t-set="res_model" t-value="'account.account'"/>
  344. <span>
  345. <a t-att-data-active-id="line.move_line_id.account_id.id"
  346. t-att-data-res-model="res_model"
  347. class="o_account_financial_reports_web_action underline-on-hover"
  348. style="color: black; cursor: pointer;">
  349. <t t-raw="line.account"/></a>
  350. </span>
  351. </div>
  352. <!--## taxes-->
  353. <div class="act_as_cell left"><span t-field="line.taxes_description"/></div>
  354. <!--## partner-->
  355. <div class="act_as_cell left">
  356. <t t-set="res_model" t-value="'res.partner'"/>
  357. <span t-if="line.partner">
  358. <a t-att-data-active-id="line.move_line_id.partner_id.id"
  359. t-att-data-res-model="res_model"
  360. class="o_account_financial_reports_web_action underline-on-hover"
  361. style="color: black; cursor: pointer;"><t t-raw="line.partner"/></a>
  362. </span>
  363. </div>
  364. <!--## ref - label-->
  365. <div class="act_as_cell left">
  366. <t t-set="res_model" t-value="'account.move.line'"/>
  367. <span>
  368. <a t-att-data-active-id="line.move_line_id.id"
  369. t-att-data-res-model="res_model"
  370. class="o_account_financial_reports_web_action underline-on-hover"
  371. style="color: black; cursor: pointer;">
  372. <t t-raw="line.label"/></a>
  373. </span>
  374. </div>
  375. <!--## cost_center-->
  376. <t t-if="show_cost_center">
  377. <div class="act_as_cell left">
  378. <t t-set="res_model" t-value="'account_analytic_account'"/>
  379. <span t-if="line.cost_center">
  380. <a t-att-data-active-id="line.move_line_id.analytic_account_id.id"
  381. t-att-data-res-model="res_model"
  382. class="o_account_financial_reports_web_action underline-on-hover"
  383. style="color: black; cursor: pointer;"><t t-raw="line.cost_center"/></a>
  384. </span>
  385. </div>
  386. </t>
  387. <t t-if="show_analytic_tags">
  388. <!--## analytic tags-->
  389. <div class="act_as_cell left"><span t-field="line.tags"/></div>
  390. </t>
  391. <!--## matching_number-->
  392. <div class="act_as_cell">
  393. <t t-set="res_model" t-value="'account.full.reconcile'"/>
  394. <span t-if="line.matched_ml_id">
  395. <a t-att-data-active-id="line.matched_ml_id.id"
  396. t-att-data-res-model="res_model"
  397. class="o_account_financial_reports_web_action underline-on-hover">
  398. <t t-att-style="style" t-raw="line.matched_ml_id.name"/></a>
  399. </span>
  400. <span t-if="line.partial_reconcile_ids and not line.matched_ml_id and o.show_partial_reconciliations">
  401. <t t-set="domain" t-value="[('id', 'in', line.partial_reconcile_ids.ids)]"/>
  402. <a t-att-data-domain="domain"
  403. t-att-data-res-model="'account.partial.reconcile'"
  404. class="o_account_financial_reports_web_action_multi"
  405. t-att-style="style">
  406. <t t-att-style="style" t-raw="line.reconcile_string"/>
  407. </a>
  408. </span>
  409. </div>
  410. <!--## debit-->
  411. <div class="act_as_cell amount">
  412. <t t-set="res_model" t-value="'account.move.line'"/>
  413. <span>
  414. <a t-att-data-active-id="line.move_line_id.id"
  415. t-att-data-res-model="res_model"
  416. class="o_account_financial_reports_web_action_monetary underline-on-hover"
  417. style="color: black; cursor: pointer;">
  418. <t t-raw="line.debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  419. </span>
  420. </div>
  421. <!--## credit-->
  422. <div class="act_as_cell amount">
  423. <t t-set="res_model" t-value="'account.move.line'"/>
  424. <span>
  425. <a t-att-data-active-id="line.move_line_id.id"
  426. t-att-data-res-model="res_model"
  427. class="o_account_financial_reports_web_action_monetary underline-on-hover"
  428. style="color: black; cursor: pointer;">
  429. <t t-raw="line.credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  430. </span>
  431. </div>
  432. <!--## balance cumulated-->
  433. <div class="act_as_cell amount">
  434. <t t-set="res_model" t-value="'account.move.line'"/>
  435. <span>
  436. <a t-att-data-active-id="line.move_line_id.id"
  437. t-att-data-res-model="res_model"
  438. class="o_account_financial_reports_web_action_monetary underline-on-hover"
  439. style="color: black; cursor: pointer;">
  440. <t t-raw="line.cumul_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/></a>
  441. </span>
  442. </div>
  443. <t t-if="foreign_currency">
  444. <t t-if="line.currency_id.id">
  445. <!--## currency_name-->
  446. <div class="act_as_cell amount" style="width: 2.08%;">
  447. <span t-field="line.currency_id.display_name"/>
  448. </div>
  449. <!--## amount_currency-->
  450. <div class="act_as_cell amount" style="width: 5.19%;">
  451. <t t-set="res_model" t-value="'account.move.line'"/>
  452. <span>
  453. <a t-att-data-active-id="line.move_line_id.id"
  454. t-att-data-res-model="res_model"
  455. class="o_account_financial_reports_web_action underline-on-hover"
  456. style="color: black; cursor: pointer;">
  457. <t t-raw="line.amount_currency" t-options="{'widget': 'monetary', 'display_currency': line.currency_id}"/></a>
  458. </span>
  459. </div>
  460. </t>
  461. <t t-if="not line.currency_id.id">
  462. <!--## currency_name-->
  463. <div class="act_as_cell amount" style="width: 2.08%;"/>
  464. <!--## amount_currency-->
  465. <div class="act_as_cell amount" style="width: 5.19%;"/>
  466. </t>
  467. </t>
  468. </div>
  469. </t>
  470. </div>
  471. </template>
  472. <template id="account_financial_report_qweb.report_general_ledger_ending_cumul">
  473. <!-- Display ending balance line for account or partner -->
  474. <div class="act_as_table list_table" style="width: 100%;">
  475. <div class="act_as_row labels" style="font-weight: bold;">
  476. <!--## date-->
  477. <t t-if='type == "account_type"'>
  478. <div class="act_as_cell first_column"
  479. style="width: 35.5%;"><span
  480. t-field="account_or_partner_object.code"/> - <span t-field="account_or_partner_object.name"/></div>
  481. <div class="act_as_cell right"
  482. style="width: 22.9%;">Ending balance</div>
  483. </t>
  484. <t t-if='type == "partner_type"'>
  485. <div class="act_as_cell first_column" style="width: 35.5%;"/>
  486. <div class="act_as_cell right" style="width: 22.9%;">Partner ending balance</div>
  487. </t>
  488. <t t-if="show_cost_center">
  489. <!--## cost_center-->
  490. <div class="act_as_cell" style="width: 7.03%"/>
  491. </t>
  492. <t t-if="show_analytic_tags">
  493. <!--## analytic tags-->
  494. <div class="act_as_cell" style="width: 4.75%;"></div>
  495. </t>
  496. <!--## matching_number-->
  497. <div class="act_as_cell" style="width: 2.41%;"/>
  498. <!--## debit-->
  499. <div class="act_as_cell amount" style="width: 8.02%;">
  500. <span t-field="account_or_partner_object.final_debit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
  501. </div>
  502. <!--## credit-->
  503. <div class="act_as_cell amount" style="width: 8.02%;">
  504. <span t-field="account_or_partner_object.final_credit" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
  505. </div>
  506. <!--## balance cumulated-->
  507. <div class="act_as_cell amount" style="width: 8.02%;">
  508. <span t-field="account_or_partner_object.final_balance" t-options="{'widget': 'monetary', 'display_currency': res_company.currency_id}"/>
  509. </div>
  510. <!--## currency_name + amount_currency-->
  511. <t t-if="foreign_currency">
  512. <t t-if="account.account_id.currency_id.id">
  513. <div class="act_as_cell amount" style="width: 2.08%;">
  514. <span t-field="account.account_id.currency_id.display_name"/>
  515. </div>
  516. <div class="act_as_cell amount" style="width: 5.19%;">
  517. <t t-if="type == 'account_type'">
  518. <t t-set="domain"
  519. t-value="[('account_id', '=', account_or_partner_object.account_id.id),
  520. ('date', '&lt;', o.date_from)]"/>
  521. <span>
  522. <a t-att-data-domain="domain"
  523. t-att-data-res-model="'account.move.line'"
  524. class="o_account_financial_reports_web_action_monetary_multi"
  525. style="color: black;">
  526. <t t-raw="account_or_partner_object.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account_or_partner_object.account_id.currency_id}"/></a>
  527. </span>
  528. </t>
  529. <t t-if="type == 'partner_type'">
  530. <t t-set="domain"
  531. t-value="[('account_id', '=', account_or_partner_object.report_account_id.account_id.id),
  532. ('partner_id', '=', account_or_partner_object.partner_id.id),
  533. ('date', '&lt;', o.date_from)]"/>
  534. <span>
  535. <a t-att-data-domain="domain"
  536. t-att-data-res-model="'account.move.line'"
  537. class="o_account_financial_reports_web_action_monetary_multi"
  538. style="color: black;">
  539. <t t-raw="account_or_partner_object.final_balance_foreign_currency" t-options="{'widget': 'monetary', 'display_currency': account_or_partner_object.report_account_id.currency_id}"/></a>
  540. </span>
  541. </t>
  542. </div>
  543. </t>
  544. <t t-if="not account.account_id.currency_id ">
  545. <div class="act_as_cell amount" style="width: 2.08%;"/>
  546. <div class="act_as_cell amount" style="width: 5.19%;"/>
  547. </t>
  548. </t>
  549. </div>
  550. </div>
  551. </template>
  552. </odoo>