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.

90 lines
3.8 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 groups="sql_export.group_sql_request_editor" string="Parameters">
  20. <field name="field_ids" nolabel="1"/>
  21. </group>
  22. <group colspan="2" col="2" groups="sql_export.group_sql_request_editor">
  23. <separator string="Allowed Users" colspan="1"/>
  24. <separator string="Allowed Users Groups" colspan="1"/>
  25. <field name="user_ids" nolabel="1"/>
  26. <field name="group_ids" nolabel="1"/>
  27. </group>
  28. </group>
  29. </form>
  30. </field>
  31. </record>
  32. <record id="sql_export_view_tree" model="ir.ui.view">
  33. <field name="name">Sql_export_tree_view</field>
  34. <field name="model">sql.export</field>
  35. <field name="arch" type="xml">
  36. <tree string="SQL Export" colors="red:valid == False">
  37. <field name="name"/>
  38. <field name="valid" invisible="1"/>
  39. </tree>
  40. </field>
  41. </record>
  42. <record id="sql_export_tree_action" model="ir.actions.act_window">
  43. <field name="name">SQL Export</field>
  44. <field name="res_model">sql.export</field>
  45. <field name="view_type">form</field>
  46. <field name="view_mode">tree,form</field>
  47. </record>
  48. <menuitem id="sql_export_menu" name="Sql Export" parent="base.menu_reporting" sequence="80"/>
  49. <menuitem id="sql_export_menu_view" name="Sql Export" parent="sql_export_menu" action="sql_export_tree_action" sequence="1"/>
  50. <record id="sql_parameter_view_form" model="ir.ui.view">
  51. <field name="name">Sql_parameter_form_view</field>
  52. <field name="model">ir.model.fields</field>
  53. <field name="arch" type="xml">
  54. <form string="SQL export">
  55. </form>
  56. </field>
  57. </record>
  58. <record id="sql_parameter_view_tree" model="ir.ui.view">
  59. <field name="name">Sql_parameter_tree_view</field>
  60. <field name="model">ir.model.fields</field>
  61. <field name="arch" type="xml">
  62. <tree string="SQL Parameter">
  63. <field name="name"/>
  64. </tree>
  65. </field>
  66. </record>
  67. <record id="sql_parameter_tree_action" model="ir.actions.act_window">
  68. <field name="name">SQL Parameter</field>
  69. <field name="res_model">ir.model.fields</field>
  70. <field name="view_type">form</field>
  71. <field name="view_mode">tree,form</field>
  72. <field name="context" eval="{'default_model_id': ref('sql_export.model_sql_file_wizard'), 'default_size': 64, 'search_default_state': 'manual'}"/>
  73. <field name="domain">[('model','=','sql.file.wizard')]</field>
  74. </record>
  75. <menuitem id="sql_parameter_menu_view" name="Sql Export Variables" parent="sql_export_menu" action="sql_parameter_tree_action" sequence="5"/>
  76. </data>
  77. </openerp>