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.

111 lines
5.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="Lines" groups="base.group_no_one">
  49. <group>
  50. <field name="line_ids" nolabel="1" attrs="{'readonly': [('state','=','created')]}">
  51. <tree decoration-info="join_model_id" editable="bottom">
  52. <field name="sequence" widget="handle"/>
  53. <field name="description" string="Field"/>
  54. <field name="model_id"/>
  55. <field name="table_alias"/>
  56. <field name="join_model_id"/>
  57. <field name="join_node"/>
  58. <field name="ttype" invisible="1"/>
  59. <field name="row" widget="toggle_button" attrs="{'invisible': ['|', ('join_model_id','!=',False), ('ttype','in',('float', 'integer', 'monetary'))]}"/>
  60. <field name="column" widget="toggle_button" attrs="{'invisible': ['|', ('join_model_id','!=',False), ('ttype','in',('float', 'integer', 'monetary'))]}"/>
  61. <field name="measure" widget="toggle_button" attrs="{'invisible': ['|', ('join_model_id','!=',False), ('ttype','not in',('float', 'integer', 'monetary'))]}"/>
  62. <field name="in_list" widget="boolean_toggle" attrs="{'invisible': [('join_model_id','!=',False)]}"/>
  63. </tree>
  64. </field>
  65. </group>
  66. </page>
  67. <page string="SQL" groups="base.group_no_one" attrs="{'invisible': [('state','!=','created')]}">
  68. <group>
  69. <field name="query" nolabel="1" readonly="1"/>
  70. </group>
  71. </page>
  72. <page string="Security">
  73. <field nolabel="1" name="group_ids" />
  74. </page>
  75. <page string="Notes">
  76. <field name="note" nolabel="1" colspan="4"/>
  77. </page>
  78. </notebook>
  79. </sheet>
  80. </form>
  81. </field>
  82. </record>
  83. <record id="action_bi_view_editor_view_form" model="ir.actions.act_window">
  84. <field name="name">Custom BI Views</field>
  85. <field name="type">ir.actions.act_window</field>
  86. <field name="res_model">bve.view</field>
  87. <field name="view_type">form</field>
  88. <field name="view_mode">tree,form</field>
  89. <field name="help" type="html">
  90. <p class="oe_view_nocontent_create">
  91. Click to create a Custom Query Object.
  92. </p>
  93. <p>
  94. </p>
  95. </field>
  96. </record>
  97. <menuitem id="menu_bi_view_editor_custom_reports"
  98. name="Custom Reports"
  99. parent="base.menu_board_root"
  100. sequence="0"/>
  101. <menuitem id="menu_bi_view_editor_view"
  102. parent="menu_bi_view_editor_custom_reports"
  103. action="action_bi_view_editor_view_form"/>
  104. </odoo>