eiru_statement_utility.xml 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <!-- Registros de caja -->
  5. <record id="eiru_statement_utility_cash" model="ir.ui.view">
  6. <field name="name">eiru.statement.utility.cash</field>
  7. <field name="model">account.bank.statement</field>
  8. <field name="inherit_id" ref="account.view_bank_statement_form2"/>
  9. <field name="arch" type="xml">
  10. <field name='state' position="before">
  11. <div class="eiru-statement-utility" attrs="{'invisible': [('state','!=','open')]}"></div>
  12. </field>
  13. <field name='state' position="before">
  14. <div class="eiru-statement-unlink" attrs="{'invisible': [('state','==','confirm')]}"></div>
  15. </field>
  16. <!-- open -->
  17. <xpath expr="//button[@name='button_open']" position="replace">
  18. <div class="eiru-statement-utility-open" states="draft"> </div>
  19. </xpath>
  20. <!-- confirm -->
  21. <xpath expr="//button[@name='button_confirm_cash']" position="replace"></xpath>
  22. <!-- Cancel -->
  23. <xpath expr="//button[@name='button_cancel']" position="replace">
  24. <div class="eiru-statement-utility-cancel" attrs="{'invisible': [('state','!=','confirm')]}"></div>
  25. </xpath>
  26. <!-- print -->
  27. <field name='state' position="before">
  28. <div class="eiru-statement-print" attrs="{'invisible': [('state','!=','confirm')]}"></div>
  29. </field>
  30. </field>
  31. </record>
  32. <!-- button_draft -->
  33. <record id="eiru_statement_utility_cash_cancel" model="ir.ui.view">
  34. <field name="name">eiru.statement.utility.cash.cancel</field>
  35. <field name="model">account.bank.statement</field>
  36. <field name="inherit_id" ref="account_cancel.bank_statement_draft_form_inherit2"/>
  37. <field name="arch" type="xml">
  38. <xpath expr="//button[@name='button_draft']" position="replace"></xpath>
  39. </field>
  40. </record>
  41. <!-- Extractos bancarios -->
  42. <record id="eiru_statement_utility_bank" model="ir.ui.view">
  43. <field name="name">eiru.statement.utility.bank</field>
  44. <field name="model">account.bank.statement</field>
  45. <field name="inherit_id" ref="account.view_bank_statement_form"/>
  46. <field name="arch" type="xml">
  47. <!-- Utility cashbox -->
  48. <field name='state' position="before">
  49. <div class="eiru-statement-utility" attrs="{'invisible': [('state','!=','open')]}"></div>
  50. </field>
  51. <!-- Eliminar -->
  52. <field name='state' position="before">
  53. <div class="eiru-statement-unlink" attrs="{'invisible': [('state','==','confirm')]}"></div>
  54. </field>
  55. <!-- Cancel cashbox -->
  56. <xpath expr="//button[@name='button_cancel']" position="replace">
  57. <div class="eiru-statement-utility-cancel" attrs="{'invisible': [('state','!=','confirm')]}"></div>
  58. </xpath>
  59. <!-- Open cashbox -->
  60. <xpath expr="//button[@name='button_confirm_bank']" position="replace">
  61. <div class="eiru-statement-utility-open" states="draft"> </div>
  62. </xpath>
  63. <!-- Resume -->
  64. <field name='state' position="before">
  65. <div class="eiru-statement-print" attrs="{'invisible': [('state','!=','confirm')]}"></div>
  66. </field>
  67. <xpath expr="//button[@name='button_draft']" position="replace"></xpath>
  68. </field>
  69. </record>
  70. </data>
  71. </openerp>