Files
reporting-engine/bi_sql_editor/readme/CONFIGURE.md
GuillemCForgeFlow 158d6dc2f5 [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-11-29 10:59:01 +07:00

44 lines
1.5 KiB
Markdown

- Go to Dashboard / Configuration / SQL Views
- tip your SQL request
![](../static/description/01_sql_request.png)
- Select the group(s) that could have access to the view
![](../static/description/02_security_access.png)
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.
![](../static/description/03_field_mapping.png)
- 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)
![](../static/description/04_materialized_view_setting.png)
- 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.