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. <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. <button name="%(base.act_menu_create)d" type="action" states="created" groups="base.group_no_one" icon="fa-align-justify" string="Create a Menu" target="new"/>
  20. <field name="state" widget="statusbar" statusbar_visible="draft,created" statusbar_colors='{"draft":"blue","created":"blue"}'/>
  21. </header>
  22. <sheet>
  23. <h1>
  24. <field name="name" attrs="{'readonly': [('state','=','created')]}" colspan="4"/>
  25. </h1>
  26. <notebook>
  27. <page string="Query">
  28. <group>
  29. <field name="data" widget="BVEEditor" nolabel="1" attrs="{'readonly': [('state','=','created')]}"/>
  30. </group>
  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>
  53. <p>
  54. </p>
  55. </field>
  56. </record>
  57. <menuitem id="menu_bi_view_editor_custom_reports"
  58. name="Custom Reports"
  59. parent="base.menu_board_root"
  60. sequence="0"/>
  61. <menuitem id="menu_bi_view_editor_view"
  62. parent="menu_bi_view_editor_custom_reports"
  63. action="action_bi_view_editor_view_form"/>
  64. </odoo>