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
4.2 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>
  5. <record model="ir.ui.view" id="mis_cash_flow_tree_view">
  6. <field name="name">mis.cash_flow.tree</field>
  7. <field name="model">mis.cash_flow</field>
  8. <field name="arch" type="xml">
  9. <tree create="false" edit="false" delete="false">
  10. <field name="company_id" groups="base.group_multi_company" />
  11. <field name="line_type" />
  12. <field name="date" />
  13. <field name="name" />
  14. <field name="partner_id" />
  15. <field name="account_id" />
  16. <field name="debit" sum="Total" />
  17. <field name="credit" sum="Total" />
  18. <button
  19. type="object"
  20. string="Open Journal Item / Forecast Line"
  21. icon="fa-external-link"
  22. name="action_open_related_line"
  23. />
  24. </tree>
  25. </field>
  26. </record>
  27. <record model="ir.ui.view" id="mis_cash_flow_form_view">
  28. <field name="name">mis.cash_flow.form</field>
  29. <field name="model">mis.cash_flow</field>
  30. <field name="arch" type="xml">
  31. <form create="false" edit="false" delete="false">
  32. <group>
  33. <group>
  34. <field name="date" />
  35. <field name="name" />
  36. <field name="partner_id" />
  37. <field name="account_id" />
  38. <field name="move_line_id" />
  39. </group>
  40. <group>
  41. <field name="debit" sum="Total" />
  42. <field name="credit" sum="Total" />
  43. <field name="company_id" groups="base.group_multi_company" />
  44. <field name="line_type" />
  45. </group>
  46. </group>
  47. </form>
  48. </field>
  49. </record>
  50. <record model="ir.ui.view" id="mis_cash_flow_search_view">
  51. <field name="name">mis.cash_flow.search</field>
  52. <field name="model">mis.cash_flow</field>
  53. <field name="arch" type="xml">
  54. <search>
  55. <field name="name" />
  56. <field name="date" />
  57. <separator />
  58. <field name="partner_id" />
  59. <field name="account_id" />
  60. <field name="company_id" groups="base.group_multi_company" />
  61. <separator />
  62. <filter
  63. string="Unreconciled"
  64. domain="[('full_reconcile_id', '=', False), ('balance','!=', 0), ('account_id.reconcile','=',True)]"
  65. help="Journal items where matching number isn't set"
  66. name="unreconciled"
  67. />
  68. <separator />
  69. <filter
  70. string="Journal Item"
  71. name="move_line"
  72. domain="[('line_type','=', 'move_line')]"
  73. />
  74. <filter
  75. string="Forecast Line"
  76. name="forecast_line"
  77. domain="[('line_type','=', 'forecast_line')]"
  78. />
  79. <group>
  80. <filter
  81. string="Line Type"
  82. name="group_by_line_type"
  83. context="{'group_by':'line_type'}"
  84. />
  85. <filter
  86. string="Account"
  87. name="group_by_account_id"
  88. context="{'group_by':'account_id'}"
  89. />
  90. <filter
  91. string="Date"
  92. name="group_by_date"
  93. context="{'group_by':'date'}"
  94. />
  95. <filter
  96. string="Company"
  97. name="group_by_company_id"
  98. context="{'group_by':'company_id'}"
  99. groups="base.group_multi_company"
  100. />
  101. </group>
  102. </search>
  103. </field>
  104. </record>
  105. </odoo>