import_statement.xml 2.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <function model="account.bank.statement" name="update_statement_type_defualt"/>
  5. <!-- Registros de caja -->
  6. <record id="eiru_import_statement_cash" model="ir.ui.view">
  7. <field name="name">eiru.import.statement.cash</field>
  8. <field name="model">account.bank.statement</field>
  9. <field name="inherit_id" ref="account.view_bank_statement_form2"/>
  10. <field name="arch" type="xml">
  11. <field name='state' position="before">
  12. <div class="import-statement" attrs="{'invisible': [('state','!=','open')]}"></div>
  13. </field>
  14. <field name="journal_id" position='after'>
  15. <field name="type_statement"/>
  16. </field>
  17. </field>
  18. </record>
  19. <!-- Extractos bancarios -->
  20. <record id="eiru_import_statement_bank" model="ir.ui.view">
  21. <field name="name">eiru.import.statement.bank</field>
  22. <field name="model">account.bank.statement</field>
  23. <field name="inherit_id" ref="account.view_bank_statement_form"/>
  24. <field name="arch" type="xml">
  25. <field name='state' position="before">
  26. <div class="import-statement" attrs="{'invisible': [('state','!=','draft')]}"></div>
  27. </field>
  28. <field name="journal_id" position='after'>
  29. <field name="type_statement"/>
  30. </field>
  31. </field>
  32. </record>
  33. <!-- Agrupación por tipo de caja cash-->
  34. <record id="eiru_import_statement_search" model="ir.ui.view">
  35. <field name="name">eiru.import.statement.search</field>
  36. <field name="model">account.bank.statement</field>
  37. <field name="inherit_id" ref="account.view_account_bank_statement_filter"/>
  38. <field name="arch" type="xml">
  39. <search>
  40. <group expand="0" string="Group By">
  41. <filter string="Tipo de Caja" context="{'group_by':'type_statement'}"/>
  42. </group>
  43. </search>
  44. </field>
  45. </record>
  46. <!-- Agrupación por tipo de caja Bank -->
  47. <record id="eiru_import_statement_search_bank" model="ir.ui.view">
  48. <field name="name">eiru.import.statement.search.bank</field>
  49. <field name="model">account.bank.statement</field>
  50. <field name="inherit_id" ref="account.view_bank_statement_search"/>
  51. <field name="arch" type="xml">
  52. <search>
  53. <group expand="0" string="Group By">
  54. <filter string="Tipo de Caja" context="{'group_by':'type_statement'}"/>
  55. </group>
  56. </search>
  57. </field>
  58. </record>
  59. </data>
  60. </openerp>