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.

58 lines
1.7 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="0">
  4. <record id="view_sql_view_form" model="ir.ui.view">
  5. <field name="name">sql.view.form</field>
  6. <field name="model">sql.view</field>
  7. <field name="type">form</field>
  8. <field name="arch" type="xml">
  9. <form string="SQL Views">
  10. <field name="name"/>
  11. <field name="sql_name"/>
  12. <field name="definition" colspan="4"/>
  13. </form>
  14. </field>
  15. </record>
  16. <record id="view_sql_view_tree" model="ir.ui.view">
  17. <field name="name">sql.view.tree</field>
  18. <field name="model">sql.view</field>
  19. <field name="type">tree</field>
  20. <field name="arch" type="xml">
  21. <tree string="SQL Views">
  22. <field name="name"/>
  23. <field name="sql_name"/>
  24. </tree>
  25. </field>
  26. </record>
  27. <record id="view_sql_view_search" model="ir.ui.view">
  28. <field name="name">sql.view.filter</field>
  29. <field name="model">sql.view</field>
  30. <field name="type">search</field>
  31. <field name="arch" type="xml">
  32. <search string="SQL Views">
  33. <field name="name"/>
  34. <field name="sql_name"/>
  35. </search>
  36. </field>
  37. </record>
  38. <record id="action_sql_view" model="ir.actions.act_window">
  39. <field name="name">SQL Views</field>
  40. <field name="type">ir.actions.act_window</field>
  41. <field name="res_model">sql.view</field>
  42. <field name="view_type">form</field>
  43. <field name="view_mode">tree,form</field>
  44. <field name="search_view_id" ref="view_sql_view_search"/>
  45. </record>
  46. <menuitem id="menu_sql_view"
  47. action="action_sql_view"
  48. sequence="20"
  49. parent="base.next_id_9"
  50. string="SQL views"/>
  51. </data>
  52. </openerp>