Files
reporting-engine/bi_sql_editor/readme/CONFIGURE.rst
GuillemCForgeFlow 0734321717 [IMP]bi_sql_editor: add parent menu as an editable parameter when creating UI elements
When creating the UI for the SQL view, it is now possible to set a specific Parent Menu which will be used when creating the UI Menu for the report itself. The default value will be the `SQL Reports` menu.
Also, added the explanation on the `CONFIGURE.rst` file to have the description updated.
2024-06-06 12:04:46 +02:00

48 lines
1.6 KiB
ReStructuredText

* Go to Dashboard / Configuration / SQL Views
* tip your SQL request
.. figure:: ../static/description/01_sql_request.png
:width: 800 px
* Select the group(s) that could have access to the view
.. figure:: ../static/description/02_security_access.png
:width: 800 px
Optionnaly, you can add a domain.
A tipical domain in a multi company context is to write
``['|', ('company_id', '=', False), ('company_id', 'in', company_ids)]``
to make reporting depending on the current companies of the user.
* Click on the button 'Validate SQL Expression'
* Once the sql request checked, the module analyses the column of the view,
and propose field mapping. For each field, you can decide to create an index
and set if it will be displayed on the pivot graph as a column, a row or a
measure.
.. figure:: ../static/description/03_field_mapping.png
:width: 800 px
* Click on the button 'Create SQL elements'. (this step could
take a while, if view is materialized)
* If it's a MATERIALIZED view:
* a cron task is created to refresh
the view. You can so define the frequency of the refresh.
* the size of view (and the indexes is displayed)
.. figure:: ../static/description/04_materialized_view_setting.png
:width: 800 px
* Before applying the final step, you will need to add a specific Parent Menu to
use when creating the UI Menu for the report. By default, it will be set with
the `SQL Views` menu, which can be changed before creating the UI elements in
order to have the report accessible from a different place within Odoo.
* Finally, click on 'Create UI', to create new menu, action, graph view and
search view.