base_module_update_views.xml 2.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <data>
  4. <record id="view_base_module_update" model="ir.ui.view">
  5. <field name="name">Module Update</field>
  6. <field name="model">base.module.update</field>
  7. <field name="arch" type="xml">
  8. <form string="Update Module List">
  9. <field name="state" invisible="1"/>
  10. <separator string="Module Update Result" states="done"/>
  11. <group states="init">
  12. <span class="o_form_label" colspan="2">Click on Update below to start the process...</span>
  13. </group>
  14. <group states="done" >
  15. <field name="updated"/>
  16. <field name="added" />
  17. </group>
  18. <footer>
  19. <div states="init">
  20. <button name="update_module" string="Update" type="object" class="btn-primary"/>
  21. <button special="cancel" data-hotkey="z" string="Cancel" class="btn-secondary"/>
  22. </div>
  23. <div states="done">
  24. <button name="action_module_open" string="Open Apps" type="object" class="btn-primary" data-hotkey="q"/>
  25. <button special="cancel" data-hotkey="z" string="Close" class="btn-secondary"/>
  26. </div>
  27. </footer>
  28. </form>
  29. </field>
  30. </record>
  31. <record id="action_view_base_module_update" model="ir.actions.act_window">
  32. <field name="name">Module Update</field>
  33. <field name="type">ir.actions.act_window</field>
  34. <field name="res_model">base.module.update</field>
  35. <field name="view_mode">form</field>
  36. <field name="target">new</field>
  37. </record>
  38. <menuitem
  39. name="Update Apps List"
  40. action="action_view_base_module_update"
  41. id="menu_view_base_module_update"
  42. groups="base.group_no_one"
  43. parent="menu_management"
  44. sequence="40"/>
  45. </data>
  46. </odoo>