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.

105 lines
5.3 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 name="expression">bal[][('account_id.internal_type', '=', 'liquidity'), ('line_type', '=', 'move_line'), ('account_id.hide_in_cash_flow', '=', False)]</field>
  18. </record>
  19. <record id="mis_kpi_in_total" model="mis.report.kpi">
  20. <field name="report_id" ref="mis_report_cash_flow"/>
  21. <field name="name">in_total</field>
  22. <field name="description">IN TOTAL</field>
  23. <field name="style_id" ref="mis_style_account_sub_total"/>
  24. <field name="sequence">30</field>
  25. <field name="expression">in_receivable + in_forecast</field>
  26. </record>
  27. <record id="mis_kpi_in_receivable" model="mis.report.kpi">
  28. <field name="report_id" ref="mis_report_cash_flow"/>
  29. <field name="name">in_receivable</field>
  30. <field name="description">In receivable</field>
  31. <field name="style_id" ref="mis_style_account_line"/>
  32. <field name="auto_expand_accounts" eval="True"/>
  33. <field name="auto_expand_accounts_style_id" ref="mis_style_account_detail"/>
  34. <field name="sequence">50</field>
  35. <field name="expression">bal[][('account_id.internal_type', '=', 'receivable'), ('full_reconcile_id', '=', False), ('line_type', '=', 'move_line'), ('account_id.hide_in_cash_flow', '=', False)]</field>
  36. </record>
  37. <record id="mis_kpi_in_forecast" model="mis.report.kpi">
  38. <field name="report_id" ref="mis_report_cash_flow"/>
  39. <field name="name">in_forecast</field>
  40. <field name="description">In forecast</field>
  41. <field name="style_id" ref="mis_style_account_line"/>
  42. <field name="auto_expand_accounts" eval="True"/>
  43. <field name="auto_expand_accounts_style_id" ref="mis_style_account_detail"/>
  44. <field name="sequence">70</field>
  45. <field name="expression">bal[][('line_type', '=', 'forecast_line'), ('debit', '!=', 0.0), ('account_id.hide_in_cash_flow', '=', False)]</field>
  46. </record>
  47. <record id="mis_kpi_out_total" model="mis.report.kpi">
  48. <field name="report_id" ref="mis_report_cash_flow"/>
  49. <field name="name">out_total</field>
  50. <field name="description">OUT TOTAL</field>
  51. <field name="style_id" ref="mis_style_account_sub_total"/>
  52. <field name="sequence">80</field>
  53. <field name="expression">out_payable + out_forecast</field>
  54. </record>
  55. <record id="mis_kpi_out_payable" model="mis.report.kpi">
  56. <field name="report_id" ref="mis_report_cash_flow"/>
  57. <field name="name">out_payable</field>
  58. <field name="description">Out payable</field>
  59. <field name="style_id" ref="mis_style_account_line"/>
  60. <field name="auto_expand_accounts" eval="True"/>
  61. <field name="auto_expand_accounts_style_id" ref="mis_style_account_detail"/>
  62. <field name="sequence">100</field>
  63. <field name="expression">bal[][('account_id.internal_type', '=', 'payable'), ('full_reconcile_id', '=', False), ('line_type', '=', 'move_line'), ('account_id.hide_in_cash_flow', '=', False)]</field>
  64. </record>
  65. <record id="mis_kpi_out_forecast" model="mis.report.kpi">
  66. <field name="report_id" ref="mis_report_cash_flow"/>
  67. <field name="name">out_forecast</field>
  68. <field name="description">Out forecast</field>
  69. <field name="style_id" ref="mis_style_account_line"/>
  70. <field name="auto_expand_accounts" eval="True"/>
  71. <field name="auto_expand_accounts_style_id" ref="mis_style_account_detail"/>
  72. <field name="sequence">120</field>
  73. <field name="expression">bal[][('line_type', '=', 'forecast_line'), ('credit', '!=', 0.0), ('account_id.hide_in_cash_flow', '=', False)]</field>
  74. </record>
  75. <record id="mis_kpi_period_balance" model="mis.report.kpi">
  76. <field name="report_id" ref="mis_report_cash_flow"/>
  77. <field name="name">period_balance</field>
  78. <field name="description">PERIOD BALANCE</field>
  79. <field name="style_id" ref="mis_style_account_sub_total"/>
  80. <field name="sequence">130</field>
  81. <field name="expression">in_total + out_total</field>
  82. <field name="style_expression">'Cash Flow - Good' if period_balance >= 0.0 else 'Cash Flow - Bad'</field>
  83. </record>
  84. <record id="mis_kpi_balance" model="mis.report.kpi">
  85. <field name="report_id" ref="mis_report_cash_flow"/>
  86. <field name="name">balance</field>
  87. <field name="description">BALANCE</field>
  88. <field name="style_id" ref="mis_style_account_total"/>
  89. <field name="sequence">150</field>
  90. <field name="expression">bale[][('account_id.hide_in_cash_flow', '=', False), '|', ('line_type', '=', 'forecast_line'), ('line_type', '=', 'move_line'), '|', ('account_id.internal_type', '=', 'liquidity'), ('account_id.internal_type', 'in', ('receivable', 'payable')), ('full_reconcile_id', '=', False)]</field>
  91. <field name="style_expression">'Cash Flow - Good' if balance >= 0.0 else 'Cash Flow - Bad'</field>
  92. </record>
  93. </odoo>