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.

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