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.

69 lines
2.8 KiB

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