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.

37 lines
1.5 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <openerp>
  3. <data noupdate="0">
  4. <record id="view_sql_view_csv_preview_form" model="ir.ui.view">
  5. <field name="name">sql.view.csv.preview.form</field>
  6. <field name="model">sql.view.csv.preview</field>
  7. <field name="arch" type="xml">
  8. <form string="SQL View CSV Preview" version="7.0">
  9. <group>
  10. <field name="limit" attrs="{'invisible': [('data', '!=', False)]}"/>
  11. <field name="filename" invisible="1"/>
  12. <field name="data" attrs="{'invisible': [('data', '=', False)]}"
  13. filename="filename"/>
  14. </group>
  15. <footer attrs="{'invisible': [('data', '!=', False)]}">
  16. <button string="Preview" name="export_csv" type="object" class="oe_highlight"/>
  17. or
  18. <button string="Cancel" class="oe_link" special="cancel"/>
  19. </footer>
  20. <footer attrs="{'invisible': [('data', '=', False)]}">
  21. <button special="cancel" string="Close" type="object"/>
  22. </footer>
  23. </form>
  24. </field>
  25. </record>
  26. <record id="action_sql_view_csv_preview" model="ir.actions.act_window">
  27. <field name="name">SQL View CSV Preview</field>
  28. <field name="res_model">sql.view.csv.preview</field>
  29. <field name="view_type">form</field>
  30. <field name="view_mode">form</field>
  31. <field name="view_id" ref="view_sql_view_csv_preview_form"/>
  32. <field name="target">new</field>
  33. </record>
  34. </data>
  35. </openerp>