OCA reporting engine fork for dev and update.
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.

70 lines
3.0 KiB

  1. <?xml version="1.0" encoding="UTF-8"?>
  2. <openerp>
  3. <data>
  4. <record id="view_bi_view_editor_view_tree" model="ir.ui.view">
  5. <field name="name">bve.view.tree</field>
  6. <field name="model">bve.view</field>
  7. <field name="arch" type="xml">
  8. <tree string="Custom BI View">
  9. <field name="name"/>
  10. </tree>
  11. </field>
  12. </record>
  13. <record id="view_bi_view_editor_view_form" model="ir.ui.view">
  14. <field name="name">bve.view.form</field>
  15. <field name="model">bve.view</field>
  16. <field name="arch" type="xml">
  17. <form string="Custom Object">
  18. <header>
  19. <button name="action_reset" type="object" states="created" string="Reset to Draft"/>
  20. <button name="action_create" type="object" states="draft" string="Generate BI View" class="oe_highlight" context="{'bve':True}"/>
  21. <button name="open_view" type="object" states="created" string="Open BI View" class="oe_highlight"/>
  22. <field name="state" widget="statusbar" statusbar_visible="draft,created" statusbar_colors='{"draft":"blue","created":"blue"}'/>
  23. </header>
  24. <sheet>
  25. <h1>
  26. <field name="name" attrs="{'readonly': [('state','=','created')]}" colspan="4"/>
  27. </h1>
  28. <notebook>
  29. <page string="Query">
  30. <field name="data" widget="BVEEditor" nolabel="1" attrs="{'readonly': [('state','=','created')]}"/>
  31. </page>
  32. <page string="Security">
  33. <field nolabel="1" name="group_ids" />
  34. </page>
  35. <page string="Notes">
  36. <field name="note" nolabel="1" colspan="4"/>
  37. </page>
  38. </notebook>
  39. </sheet>
  40. </form>
  41. </field>
  42. </record>
  43. <record id="action_bi_view_editor_view_form" model="ir.actions.act_window">
  44. <field name="name">Custom BI Views</field>
  45. <field name="type">ir.actions.act_window</field>
  46. <field name="res_model">bve.view</field>
  47. <field name="view_type">form</field>
  48. <field name="view_mode">tree,form</field>
  49. <field name="help" type="html">
  50. <p class="oe_view_nocontent_create">
  51. Click to create a Custom Query Object.
  52. </p><p>
  53. </p>
  54. </field>
  55. </record>
  56. <menuitem id="menu_bi_view_editor_custom_reports"
  57. name="Custom Reports"
  58. parent="base.menu_board_root"
  59. sequence="0"/>
  60. <menuitem id="menu_bi_view_editor_view"
  61. parent="menu_bi_view_editor_custom_reports"
  62. action="action_bi_view_editor_view_form"/>
  63. </data>
  64. </openerp>