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.

68 lines
2.1 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="arch" type="xml">
  8. <form string="SQL View" version="7.0">
  9. <header>
  10. <button name="%(action_sql_view_csv_preview)d"
  11. type="action"
  12. class="oe_highlight"
  13. string="CSV Preview"/>
  14. </header>
  15. <sheet string="SQL View">
  16. <group>
  17. <field name="name"/>
  18. <field name="sql_name"/>
  19. <field name="complete_sql_name"/>
  20. </group>
  21. <group string="Definition">
  22. <field name="definition" nolabel="1"/>
  23. </group>
  24. </sheet>
  25. </form>
  26. </field>
  27. </record>
  28. <record id="view_sql_view_tree" model="ir.ui.view">
  29. <field name="name">sql.view.tree</field>
  30. <field name="model">sql.view</field>
  31. <field name="arch" type="xml">
  32. <tree string="SQL Views">
  33. <field name="name"/>
  34. <field name="complete_sql_name"/>
  35. </tree>
  36. </field>
  37. </record>
  38. <record id="view_sql_view_search" model="ir.ui.view">
  39. <field name="name">sql.view.filter</field>
  40. <field name="model">sql.view</field>
  41. <field name="arch" type="xml">
  42. <search string="SQL Views">
  43. <field name="name"/>
  44. <field name="complete_sql_name"/>
  45. </search>
  46. </field>
  47. </record>
  48. <record id="action_sql_view" model="ir.actions.act_window">
  49. <field name="name">SQL Views</field>
  50. <field name="type">ir.actions.act_window</field>
  51. <field name="res_model">sql.view</field>
  52. <field name="view_type">form</field>
  53. <field name="view_mode">tree,form</field>
  54. <field name="search_view_id" ref="view_sql_view_search"/>
  55. </record>
  56. <menuitem id="menu_sql_view"
  57. action="action_sql_view"
  58. sequence="20"
  59. parent="base.next_id_9"
  60. string="SQL views"/>
  61. </data>
  62. </openerp>