mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Review round
This commit is contained in:
@@ -77,7 +77,8 @@ To configure this module, you need to:
|
||||
* 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:
|
||||
* 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)
|
||||
@@ -93,9 +94,9 @@ Usage
|
||||
|
||||
To use this module, you need to:
|
||||
|
||||
* Go to 'Reporting' / 'Custom Reports'
|
||||
#. Go to 'Reporting' / 'Custom Reports'
|
||||
|
||||
* select the desired report
|
||||
#. Select the desired report
|
||||
|
||||
.. figure:: /bi_sql_editor/static/description/05_reporting_pivot.png
|
||||
:width: 800 px
|
||||
|
||||
@@ -21,8 +21,8 @@
|
||||
'views/menu.xml',
|
||||
],
|
||||
'demo': [
|
||||
'demo/res_groups.xml',
|
||||
'demo/bi_sql_view.xml',
|
||||
'demo/res_groups_demo.xml',
|
||||
'demo/bi_sql_view_demo.xml',
|
||||
],
|
||||
'installable': True,
|
||||
}
|
||||
|
||||
@@ -1,18 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2014 - Today GRAP (http://www.grap.coop)
|
||||
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<openerp><data>
|
||||
|
||||
<record id="base.group_no_one" model="res.groups">
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]" />
|
||||
</record>
|
||||
|
||||
<record id="sql_request_abstract.group_sql_request_user" model="res.groups">
|
||||
<field name="users" eval="[(4, ref('base.user_demo'))]" />
|
||||
</record>
|
||||
|
||||
</data></openerp>
|
||||
18
bi_sql_editor/demo/res_groups_demo.xml
Normal file
18
bi_sql_editor/demo/res_groups_demo.xml
Normal file
@@ -0,0 +1,18 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<!--
|
||||
Copyright (C) 2014 - Today GRAP (http://www.grap.coop)
|
||||
@author Sylvain LE GAL (https://twitter.com/legalsylvain)
|
||||
License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).
|
||||
-->
|
||||
|
||||
<odoo>
|
||||
<data>
|
||||
<record id="base.group_no_one" model="res.groups">
|
||||
<field name="users" eval="[(4, ref('base.user_root'))]" />
|
||||
</record>
|
||||
|
||||
<record id="sql_request_abstract.group_sql_request_user" model="res.groups">
|
||||
<field name="users" eval="[(4, ref('base.user_demo'))]" />
|
||||
</record>
|
||||
</data>
|
||||
</odoo>
|
||||
@@ -27,14 +27,14 @@ class BiSQLView(models.Model):
|
||||
|
||||
_STATE_SQL_EDITOR = [
|
||||
('model_valid', 'SQL View and Model Created'),
|
||||
('ui_valid', 'Graph, action and Menu Created'),
|
||||
('ui_valid', 'Views, Action and Menu Created'),
|
||||
]
|
||||
|
||||
technical_name = fields.Char(
|
||||
string='Technical Name', required=True,
|
||||
help="Suffix of the SQL view. (SQL full name will be computed and"
|
||||
" prefixed by 'x_bi_sql_view_'. Should have correct"
|
||||
"syntax. For more information, see https://www.postgresql.org/"
|
||||
help="Suffix of the SQL view. SQL full name will be computed and"
|
||||
" prefixed by 'x_bi_sql_view_'. Syntax should follow: "
|
||||
"https://www.postgresql.org/"
|
||||
"docs/current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS")
|
||||
|
||||
view_name = fields.Char(
|
||||
|
||||
@@ -84,7 +84,7 @@ class BiSQLViewField(models.Model):
|
||||
|
||||
ttype = fields.Selection(
|
||||
string='Field Type', selection=_TTYPE_SELECTION, help="Type of the"
|
||||
" Odoo field that will be created. Let empty if you don't want to"
|
||||
" Odoo field that will be created. Keep empty if you don't want to"
|
||||
" create a new field. If empty, this field will not be displayed"
|
||||
" neither available for search or group by function")
|
||||
|
||||
@@ -98,7 +98,7 @@ class BiSQLViewField(models.Model):
|
||||
many2one_model_id = fields.Many2one(
|
||||
comodel_name='ir.model', string='Model',
|
||||
help="For 'Many2one' Odoo field.\n"
|
||||
" Co Model of the field.")
|
||||
" Comodel of the field.")
|
||||
|
||||
# Compute Section
|
||||
@api.multi
|
||||
|
||||
Reference in New Issue
Block a user