BI Views builder, based on Materialized or Normal SQL Views
Project description
This module extends the functionality of reporting, to support creation of extra custom reports. It allows user to write a custom SQL request. (Generally, admin users)
Once written, a new model is generated, and user can map the selected field with odoo fields. Then user ends the process, creating new menu, action and graph view.
Technically, the module create SQL View (or materialized view, if option is checked). Materialized view duplicates datas, but request are fastest. If materialized view is enabled, this module will create a cron task to refresh the data).
By default, users member of ‘SQL Request / User’ can see all the views. You can specify extra groups that have the right to access to a specific view.
Warning
This module is intended for technician people in a company and for Odoo integrators.
It requires the user to know SQL syntax and Odoo models.
If you don’t have such skills, do not try to use this module specially on a production environment.
Use Cases
this module is interesting for the following use cases
You want to realize technical SQL requests, that Odoo framework doesn’t allow (For exemple, UNION with many SELECT) A typical use case is if you want to have Sale Orders and PoS Orders datas in a same table
You want to customize an Odoo report, removing some useless fields and adding some custom ones. In that case, you can simply select the fields of the original report (sale.report model for exemple), and add your custom fields
You have a lot of data, and classical SQL Views have very bad performance. In that case, MATERIALIZED VIEW will be a good solution to reduce display duration
Table of contents
Installation
You must put this module as server_wide_modules in your odoo configuration file or add ‘–load=bi_sql_editor’ if you start odoo in command line.
Configuration
To configure this module, you need to:
Go to Settings / Technical / Database Structure / SQL Views
tip your SQL request
Select the group(s) that could have access to the view
Click on the button ‘Clean and Check Request’
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.
Click on the button ‘Create SQL View, Indexes and Models’. (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)
Finally, click on ‘Create UI’, to create new menu, action, graph view and search view.
Usage
To use this module, you need to:
Go to ‘Reporting’ / ‘Custom Reports’
Select the desired report
You can switch to ‘Pie’ chart or ‘Line Chart’ as any report,
Bug Tracker
Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed feedback.
Do not contact contributors directly about support or help with technical issues.
Credits
Contributors
Sylvain LE GAL (https://twitter.com/legalsylvain)
- This module is highly inspired by the work of
Onestein: (http://www.onestein.nl/) Module: OCA/server-tools/bi_view_editor. Link: https://github.com/OCA/reporting-engine/tree/9.0/bi_view_editor
Anybox: (https://anybox.fr/) Module : OCA/server-tools/materialized_sql_view link: https://github.com/OCA/server-tools/pull/110
GRAP, Groupement Régional Alimentaire de Proximité: (http://www.grap.coop/) Module: grap/odoo-addons-misc/pos_sale_reporting link: https://github.com/grap/odoo-addons-misc/tree/7.0/pos_sale_reporting
Maintainers
This module is maintained by the OCA.
OCA, or the Odoo Community Association, is a nonprofit organization whose mission is to support the collaborative development of Odoo features and promote its widespread use.
This module is part of the OCA/reporting-engine project on GitHub.
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
File details
Details for the file odoo12_addon_bi_sql_editor-12.0.1.2.3-py3-none-any.whl
.
File metadata
- Download URL: odoo12_addon_bi_sql_editor-12.0.1.2.3-py3-none-any.whl
- Upload date:
- Size: 589.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/59.1.1 requests-toolbelt/0.9.1 tqdm/4.58.0 CPython/3.8.5
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | ff77acd7f98b14d666d72f6b36d4f09a5a52120966778dc45a72a52d7c1060d7 |
|
MD5 | a3d0b19e5bce096502725666b46afbfe |
|
BLAKE2b-256 | 734c7157c7f2bf63c15f4c16154384dc8f1319945759290b1c718bc52ce9a9c7 |