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.

40 lines
1.7 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <odoo>
  3. <record id="view_wizard_pos_move_reason_form" model="ir.ui.view">
  4. <field name="model">wizard.pos.move.reason</field>
  5. <field name="arch" type="xml">
  6. <form>
  7. <separator string="Fill in this form if you put money in the cash register"
  8. attrs="{'invisible': [('move_type', '=', 'expense')]}"/>
  9. <separator string="Describe why you take money from the cash register"
  10. attrs="{'invisible': [('move_type', '=', 'income')]}"/>
  11. <group>
  12. <field name="move_type" invisible="1"/>
  13. <field name="session_id"/>
  14. <field name="move_reason_id" />
  15. <field name="journal_id" attrs="{'invisible': [('move_reason_id', '=', False)]}" />
  16. <field name="statement_id" invisible="1"/>
  17. <field name="journal_ids" invisible="1"/>
  18. <field name="name"/>
  19. <field name="amount"/>
  20. </group>
  21. <footer>
  22. <button name="apply" string="Apply" type="object" class="btn-primary"/>
  23. <button class="btn-secondary" special="cancel" string="Cancel"/>
  24. </footer>
  25. </form>
  26. </field>
  27. </record>
  28. <record id="action_wizard_pos_move_reason" model="ir.actions.act_window">
  29. <field name="name">Move Reasons</field>
  30. <field name="type">ir.actions.act_window</field>
  31. <field name="res_model">wizard.pos.move.reason</field>
  32. <field name="view_type">form</field>
  33. <field name="view_mode">form</field>
  34. <field name="target">new</field>
  35. </record>
  36. </odoo>