account_bank_statement_views.xml 5.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="view_bank_statement_tree" model="ir.ui.view">
  5. <field name="name">account.bank.statement.tree</field>
  6. <field name="model">account.bank.statement</field>
  7. <field name="arch" type="xml">
  8. <tree decoration-danger="journal_id and not is_complete or not is_valid"
  9. decoration-muted="not journal_id"
  10. create="false"
  11. string="Statements">
  12. <field name="name"/>
  13. <field name="date"/>
  14. <field name="journal_id"/>
  15. <field name="company_id" groups="base.group_multi_company"/>
  16. <field name="balance_start"/>
  17. <field name="balance_end_real"/>
  18. <field name="balance_end" invisible="1"/>
  19. <field name="currency_id" invisible="1"/>
  20. <field name="is_complete" invisible="1"/>
  21. <field name="is_valid" invisible="1"/>
  22. </tree>
  23. </field>
  24. </record>
  25. <record id="view_bank_statement_search" model="ir.ui.view">
  26. <field name="name">account.bank.statement.search</field>
  27. <field name="model">account.bank.statement</field>
  28. <field name="arch" type="xml">
  29. <search string="Search Bank Statements">
  30. <field name="name" string="Bank Statement"/>
  31. <field name="date"/>
  32. <filter string="Empty" name="empty" domain="[('line_ids','=',False)]"/>
  33. <filter name="invalid" string="Invalid"
  34. domain="['|', ('is_valid', '=', False),('is_complete', '=', False)]"/>
  35. <separator/>
  36. <filter name="filter_date" date="date"/>
  37. <field name="journal_id" domain="[('type', 'in', ('bank', 'cash'))]" />
  38. <group expand="0" string="Group By">
  39. <filter string="Journal" name="journal" context="{'group_by': 'journal_id'}"/>
  40. <filter string="Date" name="date" context="{'group_by': 'date'}"/>
  41. </group>
  42. </search>
  43. </field>
  44. </record>
  45. <record id="action_bank_statement_tree" model="ir.actions.act_window">
  46. <field name="name">Bank Statements</field>
  47. <field name="res_model">account.bank.statement</field>
  48. <field name="view_mode">tree,pivot,graph</field>
  49. <field name="domain">['|', ('journal_id', '=', False), ('journal_id.type', '=', 'bank')]</field>
  50. <field name="context">{'journal_type':'bank'}</field>
  51. <field name="search_view_id" ref="view_bank_statement_search"/>
  52. <field name="help" type="html">
  53. <p class="o_view_nocontent_smiling_face">
  54. Register a bank statement
  55. </p><p>
  56. A bank statement is a summary of all financial transactions
  57. occurring over a given period of time on a bank account. You
  58. should receive this periodically from your bank.
  59. </p><p>
  60. Odoo allows you to reconcile a statement line directly with
  61. the related sale or purchase invoices.
  62. </p>
  63. </field>
  64. </record>
  65. <record model="ir.actions.act_window.view" id="action_bank_statement_tree_bank">
  66. <field name="sequence" eval="1"/>
  67. <field name="view_mode">tree</field>
  68. <field name="view_id" ref="view_bank_statement_tree"/>
  69. <field name="act_window_id" ref="action_bank_statement_tree"/>
  70. </record>
  71. <record id="account_bank_statement_pivot" model="ir.ui.view">
  72. <field name="name">account.bank.statement.pivot</field>
  73. <field name="model">account.bank.statement</field>
  74. <field name="arch" type="xml">
  75. <pivot string="Account Statistics" sample="1">
  76. <field name="date" type="row"/>
  77. <field name="balance_start" type="measure"/>
  78. <field name="balance_end" type="measure"/>
  79. </pivot>
  80. </field>
  81. </record>
  82. <record id="account_bank_statement_graph" model="ir.ui.view">
  83. <field name="name">account.bank.statement.graph</field>
  84. <field name="model">account.bank.statement</field>
  85. <field name="arch" type="xml">
  86. <graph string="Account Statistics" sample="1">
  87. <field name="date"/>
  88. <field name="balance_start" operator="+"/>
  89. <field name="balance_end" operator="+"/>
  90. </graph>
  91. </field>
  92. </record>
  93. <record id="action_view_bank_statement_tree" model="ir.actions.act_window">
  94. <field name="name">Cash Registers</field>
  95. <field name="type">ir.actions.act_window</field>
  96. <field name="res_model">account.bank.statement</field>
  97. <field name="view_mode">tree,pivot,graph</field>
  98. <field name="view_id" ref="view_bank_statement_tree"/>
  99. <field name="search_view_id" ref="view_bank_statement_search"/>
  100. <field name="domain">['|', ('journal_id', '=', False), ('journal_id.type', '=', 'cash')]</field>
  101. <field name="context">{'journal_type':'cash'}</field>
  102. <field name="help" type="html">
  103. <p class="o_view_nocontent_smiling_face">
  104. Create a new cash log
  105. </p><p>
  106. A Cash Register allows you to manage cash entries in your cash
  107. journals. This feature provides an easy way to follow up cash
  108. payments on a daily basis.
  109. </p>
  110. </field>
  111. </record>
  112. </data>
  113. </odoo>