mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
- move menu and action in according view file - use new sql_request_abstract menu entry for SQL views configuration - Use sql_request_abstract primary tree view - Use sql_request_abstract primary form view - move has_grouped_changed in sql_request_abstract module - improve demo data - add default count value to display in pivot, if no pivot_measures are defined ; - set widget handle to sequence field - reorder fields in tree view and add optional hide for some fields - simplify : make field_description field required - improve : add optional='hide' and 'show' on tree visibility - replace obsolete base.menu_board_root by spreadsheet_dashboard entries - update translation
43 lines
1.3 KiB
ReStructuredText
43 lines
1.3 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
|
|
|
|
* Finally, click on 'Create UI', to create new menu, action, graph view and
|
|
search view.
|