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.

56 lines
2.2 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data>
  4. <record id="sql_export_view_form" model="ir.ui.view">
  5. <field name="name">Sql_export_form_view</field>
  6. <field name="model">sql.export</field>
  7. <field name="arch" type="xml">
  8. <form string="SQL export">
  9. <group col="2">
  10. <group colspan="2" col="5">
  11. <label for="name" colspan="1"/>
  12. <field name="name" colspan="2" nolabel="1"/>
  13. <button name="export_sql_query" string="Execute Query" type="object" class="oe_highlight" icon="gtk-execute" colspan="2"/>
  14. <label for="query" colspan="1"/>
  15. <field name="query" nolabel="1" colspan="4"/>
  16. <label for="Copy Options" colspan="1"/>
  17. <field name="copy_options" nolabel="1" colspan="4"/>
  18. </group>
  19. <group colspan="2" col="2" groups="sql_export.group_sql_request_editor">
  20. <separator string="Allowed Users" colspan="1"/>
  21. <separator string="Allowed Users Groups" colspan="1"/>
  22. <field name="user_ids" nolabel="1"/>
  23. <field name="group_ids" nolabel="1"/>
  24. </group>
  25. </group>
  26. </form>
  27. </field>
  28. </record>
  29. <record id="sql_export_view_tree" model="ir.ui.view">
  30. <field name="name">Sql_export_tree_view</field>
  31. <field name="model">sql.export</field>
  32. <field name="arch" type="xml">
  33. <tree string="SQL Export">
  34. <field name="name"/>
  35. </tree>
  36. </field>
  37. </record>
  38. <record id="sql_export_tree_action" model="ir.actions.act_window">
  39. <field name="name">SQL Export</field>
  40. <field name="res_model">sql.export</field>
  41. <field name="view_type">form</field>
  42. <field name="view_mode">tree,form</field>
  43. </record>
  44. <menuitem id="sql_export_menu" name="Sql Export" parent="base.menu_reporting" sequence="80"/>
  45. <menuitem id="sql_export_menu_view" name="Sql Export" parent="sql_export_menu" action="sql_export_tree_action" sequence="1"/>
  46. </data>
  47. </openerp>