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.

109 lines
5.8 KiB

  1. <?xml version="1.0" encoding="utf-8" ?>
  2. <!-- Copyright 2019 ADHOC SA
  3. License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). -->
  4. <odoo noupdate="True">
  5. <record id="mis_report_cash_flow" model="mis.report">
  6. <field name="name">Cash Flow</field>
  7. <field name="style_id" ref="mis_style_cash_flow" />
  8. </record>
  9. <record id="mis_kpi_aliquidity" model="mis.report.kpi">
  10. <field name="report_id" ref="mis_report_cash_flow" />
  11. <field name="name">liquidity</field>
  12. <field name="description">LIQUIDITY</field>
  13. <field name="style_id" ref="mis_style_account_sub_total" />
  14. <field name="auto_expand_accounts" eval="True" />
  15. <field name="auto_expand_accounts_style_id" ref="mis_style_account_detail" />
  16. <field name="sequence">20</field>
  17. <field
  18. name="expression"
  19. >bal[][('account_internal_type', '=', 'liquidity'), ('line_type', '=', 'move_line'), ('account_id.hide_in_cash_flow', '=', False)]</field>
  20. </record>
  21. <record id="mis_kpi_in_total" model="mis.report.kpi">
  22. <field name="report_id" ref="mis_report_cash_flow" />
  23. <field name="name">in_total</field>
  24. <field name="description">IN TOTAL</field>
  25. <field name="style_id" ref="mis_style_account_sub_total" />
  26. <field name="sequence">30</field>
  27. <field name="expression">in_receivable + in_forecast</field>
  28. </record>
  29. <record id="mis_kpi_in_receivable" model="mis.report.kpi">
  30. <field name="report_id" ref="mis_report_cash_flow" />
  31. <field name="name">in_receivable</field>
  32. <field name="description">In receivable</field>
  33. <field name="style_id" ref="mis_style_account_line" />
  34. <field name="auto_expand_accounts" eval="True" />
  35. <field name="auto_expand_accounts_style_id" ref="mis_style_account_detail" />
  36. <field name="sequence">50</field>
  37. <field
  38. name="expression"
  39. >bal[][('account_internal_type', '=', 'receivable'), ('full_reconcile_id', '=', False), ('line_type', '=', 'move_line'), ('account_id.hide_in_cash_flow', '=', False)]</field>
  40. </record>
  41. <record id="mis_kpi_in_forecast" model="mis.report.kpi">
  42. <field name="report_id" ref="mis_report_cash_flow" />
  43. <field name="name">in_forecast</field>
  44. <field name="description">In forecast</field>
  45. <field name="style_id" ref="mis_style_account_line" />
  46. <field name="auto_expand_accounts" eval="True" />
  47. <field name="auto_expand_accounts_style_id" ref="mis_style_account_detail" />
  48. <field name="sequence">70</field>
  49. <field
  50. name="expression"
  51. >bal[][('line_type', '=', 'forecast_line'), ('debit', '!=', 0.0), ('account_id.hide_in_cash_flow', '=', False)]</field>
  52. </record>
  53. <record id="mis_kpi_out_total" model="mis.report.kpi">
  54. <field name="report_id" ref="mis_report_cash_flow" />
  55. <field name="name">out_total</field>
  56. <field name="description">OUT TOTAL</field>
  57. <field name="style_id" ref="mis_style_account_sub_total" />
  58. <field name="sequence">80</field>
  59. <field name="expression">out_payable + out_forecast</field>
  60. </record>
  61. <record id="mis_kpi_out_payable" model="mis.report.kpi">
  62. <field name="report_id" ref="mis_report_cash_flow" />
  63. <field name="name">out_payable</field>
  64. <field name="description">Out payable</field>
  65. <field name="style_id" ref="mis_style_account_line" />
  66. <field name="auto_expand_accounts" eval="True" />
  67. <field name="auto_expand_accounts_style_id" ref="mis_style_account_detail" />
  68. <field name="sequence">100</field>
  69. <field
  70. name="expression"
  71. >bal[][('account_internal_type', '=', 'payable'), ('full_reconcile_id', '=', False), ('line_type', '=', 'move_line'), ('account_id.hide_in_cash_flow', '=', False)]</field>
  72. </record>
  73. <record id="mis_kpi_out_forecast" model="mis.report.kpi">
  74. <field name="report_id" ref="mis_report_cash_flow" />
  75. <field name="name">out_forecast</field>
  76. <field name="description">Out forecast</field>
  77. <field name="style_id" ref="mis_style_account_line" />
  78. <field name="auto_expand_accounts" eval="True" />
  79. <field name="auto_expand_accounts_style_id" ref="mis_style_account_detail" />
  80. <field name="sequence">120</field>
  81. <field
  82. name="expression"
  83. >bal[][('line_type', '=', 'forecast_line'), ('credit', '!=', 0.0), ('account_id.hide_in_cash_flow', '=', False)]</field>
  84. </record>
  85. <record id="mis_kpi_period_balance" model="mis.report.kpi">
  86. <field name="report_id" ref="mis_report_cash_flow" />
  87. <field name="name">period_balance</field>
  88. <field name="description">PERIOD BALANCE</field>
  89. <field name="style_id" ref="mis_style_account_sub_total" />
  90. <field name="sequence">130</field>
  91. <field name="expression">in_total + out_total</field>
  92. <field
  93. name="style_expression"
  94. >'Cash Flow - Good' if period_balance >= 0.0 else 'Cash Flow - Bad'</field>
  95. </record>
  96. <record id="mis_kpi_balance" model="mis.report.kpi">
  97. <field name="report_id" ref="mis_report_cash_flow" />
  98. <field name="name">balance</field>
  99. <field name="description">BALANCE</field>
  100. <field name="style_id" ref="mis_style_account_total" />
  101. <field name="sequence">150</field>
  102. <field
  103. name="expression"
  104. >bale[][('account_id.hide_in_cash_flow', '=', False), '|', ('line_type', '=', 'forecast_line'), ('line_type', '=', 'move_line'), '|', ('account_internal_type', '=', 'liquidity'), ('account_internal_type', 'in', ('receivable', 'payable')), ('full_reconcile_id', '=', False)]</field>
  105. <field
  106. name="style_expression"
  107. >'Cash Flow - Good' if balance >= 0.0 else 'Cash Flow - Bad'</field>
  108. </record>
  109. </odoo>