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.

85 lines
3.9 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <!-- Account Journal Ledger Template -->
  4. <template id="journal_ledger">
  5. <t t-call="report.html_container">
  6. <div class="page">
  7. <h2 class="text-center">Journal Ledger -
  8. <t t-esc="res_company.name"/>
  9. </h2>
  10. From <span t-esc="date_start"/> to <span t-esc="date_end"/>:
  11. <table class="table table-condensed">
  12. <thead>
  13. <th>Entry</th>
  14. <th>Date</th>
  15. <th>
  16. <div>Journal</div>
  17. <em>Account</em>
  18. </th>
  19. <th>
  20. <div>Partner</div>
  21. <em>Account name</em>
  22. </th>
  23. <th>
  24. <div>Reference</div>
  25. <em>Description</em>
  26. </th>
  27. <th class="text-right">Debit</th>
  28. <th class="text-right">Credit</th>
  29. </thead>
  30. <tbody>
  31. <t t-foreach="docs" t-as="o">
  32. <tr style="border-top: 2px solid black;">
  33. <td>
  34. <span t-field="o.name"/>
  35. </td>
  36. <td>
  37. <span t-field="o.date"/>
  38. </td>
  39. <td>
  40. <span t-field="o.journal_id.code"/>
  41. </td>
  42. <td>
  43. <span t-field="o.partner_id.name"/>
  44. </td>
  45. <td>
  46. <span t-field="o.ref"/>
  47. </td>
  48. <td class="text-right">
  49. <span t-field="o.amount"
  50. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  51. </td>
  52. <td class="text-right">
  53. <span t-field="o.amount"
  54. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  55. </td>
  56. </tr>
  57. <tr t-foreach="o.line_ids" t-as="l"
  58. style="border: 0;">
  59. <td/>
  60. <td/>
  61. <td>
  62. <span t-field="l.account_id.code"/>
  63. </td>
  64. <td>
  65. <span t-field="l.account_id.name"/>
  66. </td>
  67. <td>
  68. <span t-field="l.name"/>
  69. </td>
  70. <td class="text-right">
  71. <span t-field="l.debit"
  72. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  73. </td>
  74. <td class="text-right">
  75. <span t-field="l.credit"
  76. t-field-options='{"widget": "monetary", "display_currency": "res_company.currency_id"}'/>
  77. </td>
  78. </tr>
  79. </t>
  80. </tbody>
  81. </table>
  82. </div>
  83. </t>
  84. </template>
  85. </odoo>