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.

38 lines
2.0 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="view_wizard_pos_update_bank_statement_balance_form" model="ir.ui.view">
  4. <field name="model">wizard.pos.update.bank.statement.balance</field>
  5. <field name="arch" type="xml">
  6. <form string="Update Balance">
  7. Here you can change the <b><field name="balance_moment" readonly="1"/></b>
  8. <field name="item_ids" nolabel="1">
  9. <tree string="Statements" create="0" editable="top" limit="1">
  10. <field name="journal_id"/>
  11. <field name="balance_moment" invisible="1"/>
  12. <field name="balance_start"/>
  13. <field name="balance_start_real" invisible="context.get('balance_moment') != 'starting'"/>
  14. <field name="total_entry_encoding" invisible="context.get('balance_moment') != 'ending'"/>
  15. <field name="balance_end" invisible="context.get('balance_moment') != 'ending'"/>
  16. <field name="balance_end_real" invisible="context.get('balance_moment') != 'ending'"/>
  17. <field name="currency_id" groups="base.group_multi_currency"/>
  18. </tree>
  19. </field>
  20. <footer>
  21. <button name="action_confirm" string="Apply" type="object" class="btn-primary"/>
  22. <button class="btn-secondary" special="cancel" string="Cancel"/>
  23. </footer>
  24. </form>
  25. </field>
  26. </record>
  27. <record id="action_wizard_pos_update_bank_statement_balance" model="ir.actions.act_window">
  28. <field name="name">Update Balances</field>
  29. <field name="type">ir.actions.act_window</field>
  30. <field name="res_model">wizard.pos.update.bank.statement.balance</field>
  31. <field name="view_type">form</field>
  32. <field name="view_mode">form</field>
  33. <field name="target">new</field>
  34. </record>
  35. </odoo>