odoo10-addon-bi-sql-editor


Nameodoo10-addon-bi-sql-editor JSON
Version 10.0.1.0.2 PyPI version JSON
download
home_pagehttps://github.com/OCA/reporting-engine
SummaryBI Views builder, based on Materialized or Normal SQL Views
upload_time2021-05-09 05:35:28
maintainer
docs_urlNone
authorGRAP,Odoo Community Association (OCA)
requires_python~=2.7
licenseAGPL-3
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            .. image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
   :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
   :alt: License: AGPL-3

===========================================================
BI Views builder, based on Materialized or Normal SQL Views
===========================================================

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

Configuration
=============

To configure this module, you need to:

* Go to Settings / Technical / Database Structure / SQL Views

* tip your SQL request

  .. figure:: /bi_sql_editor/static/description/01_sql_request.png
     :width: 800 px

* Select the group(s) that could have access to the view

  .. figure:: /bi_sql_editor/static/description/02_security_access.png
     :width: 800 px

* 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.

  .. figure:: /bi_sql_editor/static/description/03_field_mapping.png
     :width: 800 px

* 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)

  .. figure:: /bi_sql_editor/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.

Usage
=====

To use this module, you need to:

#. Go to 'Reporting' / 'Custom Reports'

#. Select the desired report

  .. figure:: /bi_sql_editor/static/description/05_reporting_pivot.png
     :width: 800 px

* You can switch to 'Pie' chart or 'Line Chart' as any report,

  .. figure:: /bi_sql_editor/static/description/05_reporting_pie.png
     :width: 800 px

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
   :alt: Try me on Runbot
   :target: https://runbot.odoo-community.org/runbot/143/10.0

Known issues / Roadmap
======================

* Add 'interval', after type (row/col/measure) field for date(time) fields.

Note
====

* If the view is materialized, the name of the action will contain the date
  and the time of it last refresh:

  .. figure:: /bi_sql_editor/static/description/06_action_datetime_name.png
     :width: 800 px

* The syntax of the sql request has the following constrains: the name of the
  selectable columns should be prefixed by `x_`

Sample:

.. code-block:: sql

    SELECT name as x_name
    FROM res_partner

Bug Tracker
===========

Bugs are tracked on `GitHub Issues
<https://github.com/OCA/reporting-engine/issues>`_. In case of trouble, please
check there if your issue has already been reported. If you spotted it first,
help us smash it by providing detailed and welcomed feedback.

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


Funders
-------

The development of this module has been financially supported by:

* GRAP, Groupement Régional Alimentaire de Proximité (http://www.grap.coop)

Maintainer
----------

.. image:: https://odoo-community.org/logo.png
   :alt: Odoo Community Association
   :target: https://odoo-community.org

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.

To contribute to this module, please visit https://odoo-community.org.



            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/OCA/reporting-engine",
    "name": "odoo10-addon-bi-sql-editor",
    "maintainer": "",
    "docs_url": null,
    "requires_python": "~=2.7",
    "maintainer_email": "",
    "keywords": "",
    "author": "GRAP,Odoo Community Association (OCA)",
    "author_email": "support@odoo-community.org",
    "download_url": "",
    "platform": "",
    "description": ".. image:: https://img.shields.io/badge/licence-AGPL--3-blue.png\n   :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html\n   :alt: License: AGPL-3\n\n===========================================================\nBI Views builder, based on Materialized or Normal SQL Views\n===========================================================\n\nThis module extends the functionality of reporting, to support creation\nof extra custom reports.\nIt allows user to write a custom SQL request. (Generally, admin users)\n\nOnce written, a new model is generated, and user can map the selected field\nwith odoo fields.\nThen user ends the process, creating new menu, action and graph view.\n\nTechnically, the module create SQL View (or materialized view, if option is\nchecked). Materialized view duplicates datas, but request are fastest. If\nmaterialized view is enabled, this module will create a cron task to refresh\nthe data).\n\nBy default, users member of 'SQL Request / User' can see all the views.\nYou can specify extra groups that have the right to access to a specific view.\n\nWarning\n-------\nThis module is intended for technician people in a company and for Odoo integrators.\n\nIt requires the user to know SQL syntax and Odoo models.\n\nIf you don't have such skills, do not try to use this module specially on a production\nenvironment.\n\nUse Cases\n---------\n\nthis module is interesting for the following use cases\n\n* You want to realize technical SQL requests, that Odoo framework doesn't allow\n  (For exemple, UNION with many SELECT) A typical use case is if you want to have\n  Sale Orders and PoS Orders datas in a same table\n\n* You want to customize an Odoo report, removing some useless fields and adding\n  some custom ones. In that case, you can simply select the fields of the original\n  report (sale.report model for exemple), and add your custom fields\n\n* You have a lot of data, and classical SQL Views have very bad performance.\n  In that case, MATERIALIZED VIEW will be a good solution to reduce display duration\n\nConfiguration\n=============\n\nTo configure this module, you need to:\n\n* Go to Settings / Technical / Database Structure / SQL Views\n\n* tip your SQL request\n\n  .. figure:: /bi_sql_editor/static/description/01_sql_request.png\n     :width: 800 px\n\n* Select the group(s) that could have access to the view\n\n  .. figure:: /bi_sql_editor/static/description/02_security_access.png\n     :width: 800 px\n\n* Click on the button 'Clean and Check Request'\n\n* Once the sql request checked, the module analyses the column of the view,\n  and propose field mapping. For each field, you can decide to create an index\n  and set if it will be displayed on the pivot graph as a column, a row or a\n  measure.\n\n  .. figure:: /bi_sql_editor/static/description/03_field_mapping.png\n     :width: 800 px\n\n* Click on the button 'Create SQL View, Indexes and Models'. (this step could\n  take a while, if view is materialized)\n\n* If it's a MATERIALIZED view:\n\n    * a cron task is created to refresh\n      the view. You can so define the frequency of the refresh.\n    * the size of view (and the indexes is displayed)\n\n  .. figure:: /bi_sql_editor/static/description/04_materialized_view_setting.png\n     :width: 800 px\n\n* Finally, click on 'Create UI', to create new menu, action, graph view and\n  search view.\n\nUsage\n=====\n\nTo use this module, you need to:\n\n#. Go to 'Reporting' / 'Custom Reports'\n\n#. Select the desired report\n\n  .. figure:: /bi_sql_editor/static/description/05_reporting_pivot.png\n     :width: 800 px\n\n* You can switch to 'Pie' chart or 'Line Chart' as any report,\n\n  .. figure:: /bi_sql_editor/static/description/05_reporting_pie.png\n     :width: 800 px\n\n.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas\n   :alt: Try me on Runbot\n   :target: https://runbot.odoo-community.org/runbot/143/10.0\n\nKnown issues / Roadmap\n======================\n\n* Add 'interval', after type (row/col/measure) field for date(time) fields.\n\nNote\n====\n\n* If the view is materialized, the name of the action will contain the date\n  and the time of it last refresh:\n\n  .. figure:: /bi_sql_editor/static/description/06_action_datetime_name.png\n     :width: 800 px\n\n* The syntax of the sql request has the following constrains: the name of the\n  selectable columns should be prefixed by `x_`\n\nSample:\n\n.. code-block:: sql\n\n    SELECT name as x_name\n    FROM res_partner\n\nBug Tracker\n===========\n\nBugs are tracked on `GitHub Issues\n<https://github.com/OCA/reporting-engine/issues>`_. In case of trouble, please\ncheck there if your issue has already been reported. If you spotted it first,\nhelp us smash it by providing detailed and welcomed feedback.\n\nCredits\n=======\n\nContributors\n------------\n\n* Sylvain LE GAL (https://twitter.com/legalsylvain)\n\n* This module is highly inspired by the work of\n    * Onestein: (http://www.onestein.nl/)\n      Module: OCA/server-tools/bi_view_editor.\n      Link: https://github.com/OCA/reporting-engine/tree/9.0/bi_view_editor\n    * Anybox: (https://anybox.fr/)\n      Module : OCA/server-tools/materialized_sql_view\n      link: https://github.com/OCA/server-tools/pull/110\n    * GRAP, Groupement R\u00e9gional Alimentaire de Proximit\u00e9: (http://www.grap.coop/)\n      Module: grap/odoo-addons-misc/pos_sale_reporting\n      link: https://github.com/grap/odoo-addons-misc/tree/7.0/pos_sale_reporting\n\n\nFunders\n-------\n\nThe development of this module has been financially supported by:\n\n* GRAP, Groupement R\u00e9gional Alimentaire de Proximit\u00e9 (http://www.grap.coop)\n\nMaintainer\n----------\n\n.. image:: https://odoo-community.org/logo.png\n   :alt: Odoo Community Association\n   :target: https://odoo-community.org\n\nThis module is maintained by the OCA.\n\nOCA, or the Odoo Community Association, is a nonprofit organization whose\nmission is to support the collaborative development of Odoo features and\npromote its widespread use.\n\nTo contribute to this module, please visit https://odoo-community.org.\n\n\n",
    "bugtrack_url": null,
    "license": "AGPL-3",
    "summary": "BI Views builder, based on Materialized or Normal SQL Views",
    "version": "10.0.1.0.2",
    "project_urls": {
        "Homepage": "https://github.com/OCA/reporting-engine"
    },
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "23a658eb315c2628f64ba6e6378e0ce62a209f147477cb9c33bcb114456942d9",
                "md5": "0ba7763fa68528c5b5ae4ae1fee74699",
                "sha256": "a2aa7bb526f2278b8843094ba32ab68f82ac837a3212cafe442dbc44ee31c016"
            },
            "downloads": -1,
            "filename": "odoo10_addon_bi_sql_editor-10.0.1.0.2-py2-none-any.whl",
            "has_sig": false,
            "md5_digest": "0ba7763fa68528c5b5ae4ae1fee74699",
            "packagetype": "bdist_wheel",
            "python_version": "py2",
            "requires_python": "~=2.7",
            "size": 569854,
            "upload_time": "2021-05-09T05:35:28",
            "upload_time_iso_8601": "2021-05-09T05:35:28.535664Z",
            "url": "https://files.pythonhosted.org/packages/23/a6/58eb315c2628f64ba6e6378e0ce62a209f147477cb9c33bcb114456942d9/odoo10_addon_bi_sql_editor-10.0.1.0.2-py2-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2021-05-09 05:35:28",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "OCA",
    "github_project": "reporting-engine",
    "travis_ci": false,
    "coveralls": false,
    "github_actions": true,
    "requirements": [],
    "lcname": "odoo10-addon-bi-sql-editor"
}
        
Elapsed time: 0.17327s