Skip to content

Commit 835c16c

Browse files
[5277][IMP] bi_sql_editor: reflect oca changes (#16)
[5277][IMP] bi_sql_editor: reflect oca changes (#16)
1 parent c517a87 commit 835c16c

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

77 files changed

+6355
-1377
lines changed

bi_sql_editor/README.rst

Lines changed: 39 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ BI SQL Editor
77
!! This file is generated by oca-gen-addon-readme !!
88
!! changes will be overwritten. !!
99
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
10-
!! source digest: sha256:0b11ebfcccd6bcbed98818062bf8cec9d13253d4668a7b2427bbee78a298f270
10+
!! source digest: sha256:e13e1ee9bcc013f1e5a70b68fd6ae052d8f7fb2f518caedbc09979f02e48e9da
1111
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
1212
1313
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
@@ -16,11 +16,17 @@ BI SQL Editor
1616
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
1717
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
1818
:alt: License: AGPL-3
19-
.. |badge3| image:: https://img.shields.io/badge/github-qrtl%2Fstx--oca-lightgray.png?logo=github
20-
:target: https://github.com/qrtl/stx-oca/tree/15.0/bi_sql_editor
21-
:alt: qrtl/stx-oca
22-
23-
|badge1| |badge2| |badge3|
19+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github
20+
:target: https://github.com/OCA/reporting-engine/tree/15.0/bi_sql_editor
21+
:alt: OCA/reporting-engine
22+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
23+
:target: https://translation.odoo-community.org/projects/reporting-engine-15-0/reporting-engine-15-0-bi_sql_editor
24+
:alt: Translate me on Weblate
25+
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
26+
:target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=15.0
27+
:alt: Try me on Runboat
28+
29+
|badge1| |badge2| |badge3| |badge4| |badge5|
2430

2531
This module extends the functionality of reporting, to support creation
2632
of extra custom reports.
@@ -83,12 +89,12 @@ To configure this module, you need to:
8389

8490
* tip your SQL request
8591

86-
.. figure:: https://raw.githubusercontent.com/qrtl/stx-oca/15.0/bi_sql_editor/static/description/01_sql_request.png
92+
.. figure:: https://raw.githubusercontent.com/OCA/reporting-engine/15.0/bi_sql_editor/static/description/01_sql_request.png
8793
:width: 800 px
8894

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

91-
.. figure:: https://raw.githubusercontent.com/qrtl/stx-oca/15.0/bi_sql_editor/static/description/02_security_access.png
97+
.. figure:: https://raw.githubusercontent.com/OCA/reporting-engine/15.0/bi_sql_editor/static/description/02_security_access.png
9298
:width: 800 px
9399

94100
* Click on the button 'Clean and Check Request'
@@ -98,7 +104,7 @@ To configure this module, you need to:
98104
and set if it will be displayed on the pivot graph as a column, a row or a
99105
measure.
100106

101-
.. figure:: https://raw.githubusercontent.com/qrtl/stx-oca/15.0/bi_sql_editor/static/description/03_field_mapping.png
107+
.. figure:: https://raw.githubusercontent.com/OCA/reporting-engine/15.0/bi_sql_editor/static/description/03_field_mapping.png
102108
:width: 800 px
103109

104110
* Click on the button 'Create SQL View, Indexes and Models'. (this step could
@@ -110,9 +116,14 @@ To configure this module, you need to:
110116
the view. You can so define the frequency of the refresh.
111117
* the size of view (and the indexes is displayed)
112118

113-
.. figure:: https://raw.githubusercontent.com/qrtl/stx-oca/15.0/bi_sql_editor/static/description/04_materialized_view_setting.png
119+
.. figure:: https://raw.githubusercontent.com/OCA/reporting-engine/15.0/bi_sql_editor/static/description/04_materialized_view_setting.png
114120
:width: 800 px
115121

122+
* Before applying the final step, you will need to add a specific Parent Menu to
123+
use when creating the UI Menu for the report. By default, it will be set with
124+
the `SQL Views` menu, which can be changed before creating the UI elements in
125+
order to have the report accessible from a different place within Odoo.
126+
116127
* Finally, click on 'Create UI', to create new menu, action, graph view and
117128
search view.
118129

@@ -125,21 +136,21 @@ To use this module, you need to:
125136

126137
#. Select the desired report
127138

128-
.. figure:: https://raw.githubusercontent.com/qrtl/stx-oca/15.0/bi_sql_editor/static/description/05_reporting_pivot.png
139+
.. figure:: https://raw.githubusercontent.com/OCA/reporting-engine/15.0/bi_sql_editor/static/description/05_reporting_pivot.png
129140
:width: 800 px
130141

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

133-
.. figure:: https://raw.githubusercontent.com/qrtl/stx-oca/15.0/bi_sql_editor/static/description/05_reporting_pie.png
144+
.. figure:: https://raw.githubusercontent.com/OCA/reporting-engine/15.0/bi_sql_editor/static/description/05_reporting_pie.png
134145
:width: 800 px
135146

136147
Bug Tracker
137148
===========
138149

139-
Bugs are tracked on `GitHub Issues <https://github.com/qrtl/stx-oca/issues>`_.
150+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/reporting-engine/issues>`_.
140151
In case of trouble, please check there if your issue has already been reported.
141152
If you spotted it first, help us to smash it by providing a detailed and welcomed
142-
`feedback <https://github.com/qrtl/stx-oca/issues/new?body=module:%20bi_sql_editor%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
153+
`feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20bi_sql_editor%0Aversion:%2015.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
143154

144155
Do not contact contributors directly about support or help with technical issues.
145156

@@ -157,6 +168,7 @@ Contributors
157168
* Sylvain LE GAL (https://twitter.com/legalsylvain)
158169
* Richard deMeester, WilldooIT (http://www.willdooit.com/)
159170
* David James, WilldooIT (http://www.willdooit.com/)
171+
* Guillem Casassas <[email protected]>
160172

161173
* This module is highly inspired by the work of
162174
* Onestein: (http://www.onestein.nl/)
@@ -172,14 +184,24 @@ Contributors
172184
Maintainers
173185
~~~~~~~~~~~
174186

187+
This module is maintained by the OCA.
188+
189+
.. image:: https://odoo-community.org/logo.png
190+
:alt: Odoo Community Association
191+
:target: https://odoo-community.org
192+
193+
OCA, or the Odoo Community Association, is a nonprofit organization whose
194+
mission is to support the collaborative development of Odoo features and
195+
promote its widespread use.
196+
175197
.. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px
176198
:target: https://github.com/legalsylvain
177199
:alt: legalsylvain
178200

179-
Current maintainer:
201+
Current `maintainer <https://odoo-community.org/page/maintainer-role>`__:
180202

181203
|maintainer-legalsylvain|
182204

183-
This module is part of the `qrtl/stx-oca <https://github.com/qrtl/stx-oca/tree/15.0/bi_sql_editor>`_ project on GitHub.
205+
This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/15.0/bi_sql_editor>`_ project on GitHub.
184206

185-
You are welcome to contribute.
207+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.

bi_sql_editor/__manifest__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
{
66
"name": "BI SQL Editor",
77
"summary": "BI Views builder, based on Materialized or Normal SQL Views",
8-
"version": "15.0.1.0.2",
8+
"version": "15.0.1.1.0",
99
"license": "AGPL-3",
1010
"category": "Reporting",
1111
"author": "GRAP,Odoo Community Association (OCA)",

bi_sql_editor/i18n/am.po

Lines changed: 74 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ msgstr ""
2121
#. module: bi_sql_editor
2222
#: code:addons/bi_sql_editor/models/bi_sql_view.py:0
2323
#, python-format
24-
msgid "%m/%d/%Y %H:%M:%S UTC"
24+
msgid "%(model_name)s Access %(full_name)s"
2525
msgstr ""
2626

2727
#. module: bi_sql_editor
@@ -30,12 +30,6 @@ msgstr ""
3030
msgid "%s (Copy)"
3131
msgstr ""
3232

33-
#. module: bi_sql_editor
34-
#: code:addons/bi_sql_editor/models/bi_sql_view.py:0
35-
#, python-format
36-
msgid "%s Access %s"
37-
msgstr ""
38-
3933
#. module: bi_sql_editor
4034
#: code:addons/bi_sql_editor/models/bi_sql_view.py:0
4135
#, python-format
@@ -75,6 +69,11 @@ msgstr ""
7569
msgid "Available"
7670
msgstr ""
7771

72+
#. module: bi_sql_editor
73+
#: model:ir.model.fields.selection,name:bi_sql_editor.selection__bi_sql_view_field__group_operator__avg
74+
msgid "Average"
75+
msgstr ""
76+
7877
#. module: bi_sql_editor
7978
#: model:ir.model,name:bi_sql_editor.model_bi_sql_view
8079
msgid "BI SQL View"
@@ -85,6 +84,21 @@ msgstr ""
8584
msgid "Bi SQL View Field"
8685
msgstr ""
8786

87+
#. module: bi_sql_editor
88+
#: model:ir.model.fields,help:bi_sql_editor.field_bi_sql_view__parent_menu_id
89+
msgid ""
90+
"By assigning a value to this field before manually creating the UI, you're "
91+
"overwriting the parent menu on which the menu related to the SQL report will "
92+
"be created."
93+
msgstr ""
94+
95+
#. module: bi_sql_editor
96+
#: model:ir.model.fields,help:bi_sql_editor.field_bi_sql_view_field__group_operator
97+
msgid ""
98+
"By default, Odoo will sum the values when grouping. If you wish to alter the "
99+
"behaviour, choose an alternate Group Operator"
100+
msgstr ""
101+
88102
#. module: bi_sql_editor
89103
#: model:ir.model.fields,help:bi_sql_editor.field_bi_sql_view_field__is_group_by
90104
msgid ""
@@ -108,9 +122,14 @@ msgstr ""
108122
msgid "Comma-separated text. Possible values: \"graph\", \"pivot\" or \"tree\""
109123
msgstr ""
110124

125+
#. module: bi_sql_editor
126+
#: model:ir.model.fields,field_description:bi_sql_editor.field_bi_sql_view__computed_action_context
127+
msgid "Computed Action Context"
128+
msgstr ""
129+
111130
#. module: bi_sql_editor
112131
#: model_terms:ir.ui.view,arch_db:bi_sql_editor.view_bi_sql_view_form
113-
msgid "Context"
132+
msgid "Computed Context"
114133
msgstr ""
115134

116135
#. module: bi_sql_editor
@@ -140,6 +159,11 @@ msgstr "Creado en"
140159
msgid "Cron Task that will refresh the materialized view"
141160
msgstr ""
142161

162+
#. module: bi_sql_editor
163+
#: model_terms:ir.ui.view,arch_db:bi_sql_editor.view_bi_sql_view_form
164+
msgid "Custom Context"
165+
msgstr ""
166+
143167
#. module: bi_sql_editor
144168
#: model:ir.model.fields,field_description:bi_sql_editor.field_bi_sql_view__size
145169
msgid "Database Size"
@@ -187,6 +211,11 @@ msgstr ""
187211
msgid "Field Type"
188212
msgstr ""
189213

214+
#. module: bi_sql_editor
215+
#: model:ir.model,name:bi_sql_editor.model_ir_model_fields
216+
msgid "Fields"
217+
msgstr ""
218+
190219
#. module: bi_sql_editor
191220
#: model:ir.model.fields,help:bi_sql_editor.field_bi_sql_view_field__many2one_model_id
192221
msgid ""
@@ -217,6 +246,11 @@ msgstr ""
217246
msgid "Graph Type"
218247
msgstr ""
219248

249+
#. module: bi_sql_editor
250+
#: model:ir.model.fields,field_description:bi_sql_editor.field_bi_sql_view_field__group_operator
251+
msgid "Group Operator"
252+
msgstr ""
253+
220254
#. module: bi_sql_editor
221255
#: model:ir.model.fields,field_description:bi_sql_editor.field_bi_sql_view__has_group_changed
222256
msgid "Has Group Changed"
@@ -276,11 +310,21 @@ msgstr "Última actualización en"
276310
msgid "Materialized Text"
277311
msgstr ""
278312

313+
#. module: bi_sql_editor
314+
#: model:ir.model.fields.selection,name:bi_sql_editor.selection__bi_sql_view_field__group_operator__max
315+
msgid "Maximum"
316+
msgstr ""
317+
279318
#. module: bi_sql_editor
280319
#: model:ir.model.fields.selection,name:bi_sql_editor.selection__bi_sql_view_field__graph_type__measure
281320
msgid "Measure"
282321
msgstr ""
283322

323+
#. module: bi_sql_editor
324+
#: model:ir.model.fields.selection,name:bi_sql_editor.selection__bi_sql_view_field__group_operator__min
325+
msgid "Minimum"
326+
msgstr ""
327+
284328
#. module: bi_sql_editor
285329
#: model:ir.model.fields,field_description:bi_sql_editor.field_bi_sql_view_field__many2one_model_id
286330
#: model_terms:ir.ui.view,arch_db:bi_sql_editor.view_bi_sql_view_form
@@ -362,6 +406,11 @@ msgstr ""
362406
msgid "Open View"
363407
msgstr ""
364408

409+
#. module: bi_sql_editor
410+
#: model:ir.model.fields,field_description:bi_sql_editor.field_bi_sql_view__parent_menu_id
411+
msgid "Parent Odoo Menu"
412+
msgstr ""
413+
365414
#. module: bi_sql_editor
366415
#: model_terms:ir.ui.view,arch_db:bi_sql_editor.view_bi_sql_view_form
367416
msgid "Preview SQL Expression"
@@ -397,8 +446,8 @@ msgstr ""
397446
#: code:addons/bi_sql_editor/models/bi_sql_view.py:0
398447
#, python-format
399448
msgid ""
400-
"SQL Error while creating %s VIEW %s :\n"
401-
" %s"
449+
"SQL Error while creating %(materialized_text)s VIEW %(view_name)s :\n"
450+
" %(error)s"
402451
msgstr ""
403452

404453
#. module: bi_sql_editor
@@ -494,6 +543,11 @@ msgid ""
494543
"current/static/sql-syntax-lexical.html#SQL-SYNTAX-IDENTIFIERS"
495544
msgstr ""
496545

546+
#. module: bi_sql_editor
547+
#: model:ir.model.fields.selection,name:bi_sql_editor.selection__bi_sql_view_field__group_operator__sum
548+
msgid "Sum"
549+
msgstr ""
550+
497551
#. module: bi_sql_editor
498552
#: model:ir.model.fields,field_description:bi_sql_editor.field_bi_sql_view__technical_name
499553
msgid "Technical Name"
@@ -529,6 +583,16 @@ msgid ""
529583
"available for search or group by function"
530584
msgstr ""
531585

586+
#. module: bi_sql_editor
587+
#: model_terms:ir.ui.view,arch_db:bi_sql_editor.view_bi_sql_view_form
588+
msgid "UI Instances"
589+
msgstr ""
590+
591+
#. module: bi_sql_editor
592+
#: model_terms:ir.ui.view,arch_db:bi_sql_editor.view_bi_sql_view_form
593+
msgid "UI Parameters"
594+
msgstr ""
595+
532596
#. module: bi_sql_editor
533597
#: model:ir.model.fields.selection,name:bi_sql_editor.selection__bi_sql_view_field__tree_visibility__unavailable
534598
msgid "Unavailable"
@@ -578,12 +642,6 @@ msgstr ""
578642
msgid "You can not create indexes on non materialized views"
579643
msgstr ""
580644

581-
#. module: bi_sql_editor
582-
#: code:addons/bi_sql_editor/models/bi_sql_view.py:0
583-
#, python-format
584-
msgid "You can only process this action on SQL Valid items"
585-
msgstr ""
586-
587645
#. module: bi_sql_editor
588646
#: code:addons/bi_sql_editor/models/bi_sql_view.py:0
589647
#, python-format

0 commit comments

Comments
 (0)