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.

87 lines
3.8 KiB

  1. <?xml version="1.0" encoding="utf-8"?>
  2. <odoo>
  3. <record id="action_bi_view_editor_translations" model="ir.actions.act_window">
  4. <field name="name">Translations</field>
  5. <field name="type">ir.actions.act_window</field>
  6. <field name="res_model">ir.translation</field>
  7. <field name="view_type">form</field>
  8. <field name="domain">[('res_id', '=', active_record.), ('name', '=', 'ir.model.fields,field_description')]</field>
  9. <field name="view_id" ref="base.view_translation_dialog_tree"/>
  10. </record>
  11. <record id="view_bi_view_editor_view_tree" model="ir.ui.view">
  12. <field name="model">bve.view</field>
  13. <field name="arch" type="xml">
  14. <tree string="Custom BI View">
  15. <field name="name"/>
  16. </tree>
  17. </field>
  18. </record>
  19. <record id="view_bi_view_editor_view_form" model="ir.ui.view">
  20. <field name="model">bve.view</field>
  21. <field name="arch" type="xml">
  22. <form string="Custom Object">
  23. <header>
  24. <button name="action_reset" type="object" states="created" string="Reset to Draft"/>
  25. <button name="action_create" type="object" states="draft" string="Generate BI View" class="oe_highlight"/>
  26. <button name="open_view" type="object" states="created" string="Open BI View" class="oe_highlight"/>
  27. <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"/>
  28. <field name="state" widget="statusbar" statusbar_visible="draft,created" statusbar_colors='{"draft":"blue","created":"blue"}'/>
  29. </header>
  30. <sheet>
  31. <div class="oe_button_box" name="button_box">
  32. <button name="action_translations"
  33. type="object"
  34. states="created"
  35. icon="fa-globe"
  36. string="Translations"
  37. />
  38. </div>
  39. <h1>
  40. <field name="name" attrs="{'readonly': [('state','=','created')]}" colspan="4"/>
  41. </h1>
  42. <notebook>
  43. <page string="Query">
  44. <group>
  45. <field name="data" widget="BVEEditor" nolabel="1" attrs="{'readonly': [('state','=','created')]}"/>
  46. </group>
  47. </page>
  48. <page string="Security">
  49. <field nolabel="1" name="group_ids" />
  50. </page>
  51. <page string="Notes">
  52. <field name="note" nolabel="1" colspan="4"/>
  53. </page>
  54. </notebook>
  55. </sheet>
  56. </form>
  57. </field>
  58. </record>
  59. <record id="action_bi_view_editor_view_form" model="ir.actions.act_window">
  60. <field name="name">Custom BI Views</field>
  61. <field name="type">ir.actions.act_window</field>
  62. <field name="res_model">bve.view</field>
  63. <field name="view_type">form</field>
  64. <field name="view_mode">tree,form</field>
  65. <field name="help" type="html">
  66. <p class="oe_view_nocontent_create">
  67. Click to create a Custom Query Object.
  68. </p>
  69. <p>
  70. </p>
  71. </field>
  72. </record>
  73. <menuitem id="menu_bi_view_editor_custom_reports"
  74. name="Custom Reports"
  75. parent="base.menu_board_root"
  76. sequence="0"/>
  77. <menuitem id="menu_bi_view_editor_view"
  78. parent="menu_bi_view_editor_custom_reports"
  79. action="action_bi_view_editor_view_form"/>
  80. </odoo>