-
-
Notifications
You must be signed in to change notification settings - Fork 864
[19.0][MIG] bi_sql_editor: Migration to 19.0 #1102
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
lef-adhoc
wants to merge
126
commits into
OCA:19.0
Choose a base branch
from
adhoc-dev:19.0-mig-bi_sql_editor
base: 19.0
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+60,467
−0
Open
Changes from all commits
Commits
Show all changes
126 commits
Select commit
Hold shift + click to select a range
cf86623
new module bi_sql_editor [IMP] function to guess model for many2one f…
legalsylvain f74e3ee
OCA Transbot updated translations from Transifex
oca-transbot 33e3d99
bi_sql_editor
nicomacr cf6df94
create ui now create tree view [IMP] fr translation [IMP] add last re…
legalsylvain a626cf0
[IMP] Add test + several fixes
AaronHForgeFlow d2b99ad
OCA Transbot updated translations from Transifex
oca-transbot cca0fd4
FIX bi_sql_editor
nicomacr 3fc1231
[MIG] bi_sql_editor v10
serpentcs-dev1 c89832e
[IMP] preview button
serpentcs-dev1 65498de
Fix several issues
0ed5a9e
10.0 imp bi sql editor (#1)
legalsylvain 4234f8e
[UPD] Update bi_sql_editor.pot
oca-travis a92cf53
[MIG] bi_sql_editor: Migration to 11.0
HviorForgeFlow 5fdfc4b
[FIX] Can be upgraded with materialized views generated
HviorForgeFlow 7fea29e
[FIX] ir.cron relation
MiquelRForgeFlow 840b0f8
[IMP] remove unneeded parenthesis
MiquelRForgeFlow e15f224
[FIX] Solves the upgrading problem
MiquelRForgeFlow 4136c09
[FIX] Query and technical name should only be modifiable in draft mode
MiquelRForgeFlow dcf0d9e
[UPD] Update bi_sql_editor.pot
oca-travis b9c64e7
Update translation files
oca-transbot e3b85d7
[12.0][MIG] Migrate module bi_sql_editor to v12
AdriaGForgeFlow 0f5d0e5
[FIX] bi_sql_editor: add in readme how to solve the update all break
MiquelRForgeFlow 1ae6137
Update readme
AdriaGForgeFlow aa601f9
bi_sql_editor 12.0.1.2.0
OCA-git-bot 650af06
Update translation files
oca-transbot 8c87cf6
Translated using Weblate (German)
rschnapka a80ef9d
[FIX] bi_sql_editor: Fixes images path
pedrobaeza ce79985
[FIX] bi_sql_editor: Add required attribute name on filters
HviorForgeFlow 9e9be79
change SQL mapping for date
HviorForgeFlow 8692e97
[ADD] action context
legalsylvain 9d7f4fb
Update translation files
oca-transbot 189fa80
[WIP] imp bi_sql_editor
legalsylvain a342966
[FIX] bi_sql_editor : handle correctly translation for action name
legalsylvain 34dfd75
[IMP] bi_sql_editor : conserve cron settings, when setting materializ…
legalsylvain 3f339ce
[IMP] bi_sql_editor: black, isort, prettier
HviorForgeFlow 2613077
[MIG] bi_sql_editor: Migration to 13.0
HviorForgeFlow 317368b
bi_sql_editor 13.0.1.0.1
OCA-git-bot d7196bb
Translated using Weblate (Spanish)
anasuarez1 677fc50
[IMP] bi_sql_editor: black, isort, prettier
davejames 55d18c4
bi_sql_editor: Migration to 14.0
davejames f82e6f5
bi_sql_editor: add support for group operators
davejames 8fb7937
[UPD] Update bi_sql_editor.pot
oca-travis ffecbbd
[UPD] README.rst
OCA-git-bot 3d4a912
[IMP] bi_sql_editor: black, isort, prettier
mariadforgeflow c7d5006
[MIG] bi_sql_editor: Migration to 15.0
mariadforgeflow 42d1428
[UPD] Update bi_sql_editor.pot
99fb94d
[UPD] README.rst
OCA-git-bot a17e7d4
[FIX] bi_sql_editor: fix typo
mariadforgeflow 38f65d7
bi_sql_editor 15.0.1.0.1
OCA-git-bot 6329758
[IMP] bi_sql_editor: Remove useless monkeypatch
lmignon 7cf1600
bi_sql_editor 15.0.1.0.2
OCA-git-bot 95b483d
Translated using Weblate (Catalan)
pablontura 009453b
Translated using Weblate (Catalan)
jabelchi 3a3087e
[MIG] bi_sql_editor : from 15.0 to 16.0
legalsylvain b268019
[IMP] bi_sql_editor manual field check performance
paulius-sladkevicius 80df448
[IMP] bi_sql_editor : add field context
legalsylvain a4b288d
[UPD] Update bi_sql_editor.pot
d14101d
[UPD] README.rst
OCA-git-bot 810f734
Translated using Weblate (Italian)
mymage a2caa3c
Translated using Weblate (Spanish (Argentina))
ibuioli b1eac3d
Translated using Weblate (Slovenian)
sysadminmatmoz 78b149e
Update bi_sql_view.py
259bfe6
[FIX] unlink bi_sql_view without cron
4c3bd4f
bi_sql_editor 16.0.1.0.3
OCA-git-bot e5243b5
Translated using Weblate (Italian)
mymage 79fbddb
bi_sql_editor 16.0.1.0.4
OCA-git-bot 0e6088b
[UPD] Update bi_sql_editor.pot
0fb9f06
Translated using Weblate (Spanish)
Ivorra78 b721cf6
Update translation files
weblate b7d5c7f
[UPD] README.rst
OCA-git-bot 2852a72
Translated using Weblate (Spanish)
Ivorra78 ba18937
[UPD] Update bi_sql_editor.pot
f9203ef
Update translation files
weblate f71de66
[16.0][FIX][bi_sql_editor] unlink bi_sql_view without cron
leemannd 2440154
[BOT] post-merge updates
OCA-git-bot 2e227f8
[IMP] bi_sql_editor: pre-commit auto fixes
nguyenminhchien a90735e
[IMP] bi_sql_editor : make installation idempotens
legalsylvain a492152
[REF] bi_sql_editor : simplify module tests
legalsylvain 33520c6
[REF] bi_sql_editor : Make test independant
legalsylvain cf7b86b
[FIX] bi_sql_editor : do not allow to create model (and sql views) if…
legalsylvain 7f6615c
[FIX] bi_sql_editor : use correct key word 'optional'. (and not 'opti…
legalsylvain 311a60a
[IMP] bi_sql_editor : allow to reset to the previous state, and not o…
legalsylvain 6f20a2d
[REF] bi_sql_editor : simplification : Remove conditional display rel…
legalsylvain a4aee7e
[REM] bi_sql_editor : option_context_field field, as it is now possib…
legalsylvain 0df06a1
[IMP] bi_sql_editor : Allow to change fields settings if state is 'Mo…
legalsylvain af0eecf
[IMP] bi_sql_editor : Improve code coverage, adding various settings …
legalsylvain eb7b39b
[MIG] bi_sql_editor: Migration to 17.0
nguyenminhchien b1b0482
[UPD] Update bi_sql_editor.pot
4486ac1
[BOT] post-merge updates
OCA-git-bot 8de3843
Update translation files
weblate 6babb30
Update translation files
weblate d248a50
Translated using Weblate (Spanish)
Ivorra78 915c73e
Translated using Weblate (Italian)
mymage 2d8abf9
Translated using Weblate (Italian)
mymage 5d65a62
Translated using Weblate (Italian)
mymage 39cd719
[FIX] *: line too long
pedrobaeza ac99c5b
[BOT] post-merge updates
OCA-git-bot f5f6039
[IMP]bi_sql_editor: add parent menu as an editable parameter when cre…
GuillemCForgeFlow 1fc954c
[UPD] Update bi_sql_editor.pot
fa8e70c
[BOT] post-merge updates
OCA-git-bot c8b4290
Update translation files
weblate c114d3d
Translated using Weblate (Italian)
mymage ca2f972
Translated using Weblate (Swedish)
jakobkrabbe 46ca5f6
[UPD] Update bi_sql_editor.pot
c3c591a
Update translation files
weblate d83956d
IMP: bi_sql_editor lang
gurneyalex f5643e1
[IMP] pre-commit lint
HviorForgeFlow 54e39c3
[MIG] bi_sql_editor: Migration to 18.0
thienvh332 e5dcaa2
[UPD] Update bi_sql_editor.pot
b732643
[BOT] post-merge updates
OCA-git-bot d757074
Update translation files
weblate d0e1fd7
Translated using Weblate (Italian)
mymage 0a1e7a4
The field cron_id should be copy=False
SupportSNDC 2ca04fe
[BOT] post-merge updates
OCA-git-bot 3bb1cb4
[FIX] bi_sql_editor: Replace deprecated datetime.utcnow()
emmanuel-ferdman d42432d
[BOT] post-merge updates
OCA-git-bot 53dbbac
[UPD] Update bi_sql_editor.pot
707e8ae
Update translation files
weblate 9e3b8ea
[FIX] bi_sql_editor: replaces deprecated group_operator by aggregator
chrisb-c01 895a606
[BOT] post-merge updates
OCA-git-bot 3c202c9
Translated using Weblate (Catalan)
jabelchi c1dc8be
Translated using Weblate (Catalan)
jabelchi 93d9d8c
Translated using Weblate (Catalan)
jabelchi 7bdc452
[IMP] bi_sql_editor: pre-commit execution
lef-adhoc 7107556
[MIG] bi_sql_editor: Migration to 19.0
lef-adhoc b66eb95
[DON'T MERGE] test-requirements.txt
lef-adhoc File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,227 @@ | ||
| .. image:: https://odoo-community.org/readme-banner-image | ||
| :target: https://odoo-community.org/get-involved?utm_source=readme | ||
| :alt: Odoo Community Association | ||
|
|
||
| ============= | ||
| BI SQL Editor | ||
| ============= | ||
|
|
||
| .. | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! This file is generated by oca-gen-addon-readme !! | ||
| !! changes will be overwritten. !! | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
| !! source digest: sha256:d2dd861ee44c4f6bb0b5d8e70fd980fd82175d5d54808650310ffbe5ca557e47 | ||
| !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! | ||
|
|
||
| .. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png | ||
| :target: https://odoo-community.org/page/development-status | ||
| :alt: Beta | ||
| .. |badge2| image:: https://img.shields.io/badge/license-AGPL--3-blue.png | ||
| :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html | ||
| :alt: License: AGPL-3 | ||
| .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github | ||
| :target: https://github.com/OCA/reporting-engine/tree/19.0/bi_sql_editor | ||
| :alt: OCA/reporting-engine | ||
| .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png | ||
| :target: https://translation.odoo-community.org/projects/reporting-engine-19-0/reporting-engine-19-0-bi_sql_editor | ||
| :alt: Translate me on Weblate | ||
| .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png | ||
| :target: https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=19.0 | ||
| :alt: Try me on Runboat | ||
|
|
||
| |badge1| |badge2| |badge3| |badge4| |badge5| | ||
|
|
||
| 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** | ||
|
|
||
| .. contents:: | ||
| :local: | ||
|
|
||
| Configuration | ||
| ============= | ||
|
|
||
| - Go to Dashboard / Configuration / SQL Views | ||
|
|
||
| - tip your SQL request | ||
|
|
||
| |image1| | ||
|
|
||
| - Select the group(s) that could have access to the view | ||
|
|
||
| |image2| | ||
|
|
||
| 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. | ||
|
|
||
| |image3| | ||
|
|
||
| - 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) | ||
|
|
||
| |image4| | ||
|
|
||
| - Before applying the final step, you will need to add a specific Parent | ||
| Menu to use when creating the UI Menu for the report. By default, it | ||
| will be set with the ``SQL Views`` menu, which can be changed before | ||
| creating the UI elements in order to have the report accessible from a | ||
| different place within Odoo. | ||
|
|
||
| - Finally, click on 'Create UI', to create new menu, action, graph view | ||
| and search view. | ||
|
|
||
| .. |image1| image:: https://raw.githubusercontent.com/OCA/reporting-engine/19.0/bi_sql_editor/static/description/01_sql_request.png | ||
| .. |image2| image:: https://raw.githubusercontent.com/OCA/reporting-engine/19.0/bi_sql_editor/static/description/02_security_access.png | ||
| .. |image3| image:: https://raw.githubusercontent.com/OCA/reporting-engine/19.0/bi_sql_editor/static/description/03_field_mapping.png | ||
| .. |image4| image:: https://raw.githubusercontent.com/OCA/reporting-engine/19.0/bi_sql_editor/static/description/04_materialized_view_setting.png | ||
|
|
||
| Usage | ||
| ===== | ||
|
|
||
| To use this module, you need to: | ||
|
|
||
| 1. Go to 'Dashboards > SQL Reports' | ||
| 2. Select the desired report | ||
|
|
||
| .. | ||
|
|
||
| |usage-image1| | ||
|
|
||
| - You can switch to 'Graph' or 'tree' views as any report. | ||
|
|
||
| .. |usage-image1| image:: https://raw.githubusercontent.com/OCA/reporting-engine/19.0/bi_sql_editor/static/description/05_reporting_pivot.png | ||
|
|
||
| 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 to smash it by providing a detailed and welcomed | ||
| `feedback <https://github.com/OCA/reporting-engine/issues/new?body=module:%20bi_sql_editor%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_. | ||
|
|
||
| Do not contact contributors directly about support or help with technical issues. | ||
|
|
||
| Credits | ||
| ======= | ||
|
|
||
| Authors | ||
| ------- | ||
|
|
||
| * GRAP | ||
|
|
||
| Contributors | ||
| ------------ | ||
|
|
||
| - Sylvain LE GAL (https://twitter.com/legalsylvain) | ||
|
|
||
| - Richard deMeester, WilldooIT (http://www.willdooit.com/) | ||
|
|
||
| - David James, WilldooIT (http://www.willdooit.com/) | ||
|
|
||
| - Guillem Casassas guillem.casassas@forgeflow.com | ||
|
|
||
| - Thien Vo thienvh@trobz.com | ||
|
|
||
| - 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 | ||
|
|
||
| Other credits | ||
| ------------- | ||
|
|
||
| The migration of this module from 17.0 to 18.0 was financially supported | ||
| by Camptocamp. | ||
|
|
||
| Maintainers | ||
| ----------- | ||
|
|
||
| This module is maintained by the OCA. | ||
|
|
||
| .. image:: https://odoo-community.org/logo.png | ||
| :alt: Odoo Community Association | ||
| :target: https://odoo-community.org | ||
|
|
||
| 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. | ||
|
|
||
| .. |maintainer-legalsylvain| image:: https://github.com/legalsylvain.png?size=40px | ||
| :target: https://github.com/legalsylvain | ||
| :alt: legalsylvain | ||
|
|
||
| Current `maintainer <https://odoo-community.org/page/maintainer-role>`__: | ||
|
|
||
| |maintainer-legalsylvain| | ||
|
|
||
| This module is part of the `OCA/reporting-engine <https://github.com/OCA/reporting-engine/tree/19.0/bi_sql_editor>`_ project on GitHub. | ||
|
|
||
| You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,4 @@ | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
|
||
| from . import models | ||
| from .hooks import uninstall_hook |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,25 @@ | ||
| # Copyright (C) 2017 - 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.html). | ||
|
|
||
| { | ||
| "name": "BI SQL Editor", | ||
| "summary": "BI Views builder, based on Materialized or Normal SQL Views", | ||
| "version": "19.0.1.0.0", | ||
| "license": "AGPL-3", | ||
| "category": "Reporting", | ||
| "author": "GRAP,Odoo Community Association (OCA)", | ||
| "website": "https://github.com/OCA/reporting-engine", | ||
| "depends": [ | ||
| "spreadsheet_dashboard", | ||
| "sql_request_abstract", | ||
| ], | ||
| "data": [ | ||
| "security/ir.model.access.csv", | ||
| "views/view_bi_sql_view.xml", | ||
| ], | ||
| "demo": ["demo/res_groups_demo.xml", "demo/bi_sql_view_demo.xml"], | ||
| "installable": True, | ||
| "uninstall_hook": "uninstall_hook", | ||
| "maintainers": ["legalsylvain"], | ||
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,53 @@ | ||
| <?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 noupdate="1"> | ||
| <record id="incorrect_sql_view" model="bi.sql.view"> | ||
| <field name="name">Draft Incorrect SQL View</field> | ||
| <field name="technical_name">incorrect_view</field> | ||
| <field | ||
| name="query" | ||
| ><![CDATA[ | ||
| SELECT * | ||
| FROM unexisting_table | ||
| ORDER BY unexisting_field | ||
| ]]> | ||
| </field> | ||
| </record> | ||
| <record id="partner_sql_view" model="bi.sql.view"> | ||
| <field name="name">Partners View</field> | ||
| <field name="technical_name">partners_view</field> | ||
| <field name="is_materialized" eval="True" /> | ||
| <field | ||
| name="query" | ||
| ><![CDATA[ | ||
| SELECT | ||
| name as x_name, | ||
| street as x_street, | ||
| company_id as x_company_id | ||
| FROM res_partner | ||
| ORDER BY name | ||
| ]]> | ||
| </field> | ||
| </record> | ||
| <record id="module_sql_view" model="bi.sql.view"> | ||
| <field name="name">Modules by Authors</field> | ||
| <field name="technical_name">modules_view</field> | ||
| <field name="is_materialized" eval="0" /> | ||
| <field | ||
| name="query" | ||
| ><![CDATA[ | ||
| SELECT | ||
| name as x_name, | ||
| case | ||
| when author ilike '%OpenERP SA%' THEN 'Odoo SA' | ||
| when author ilike '%Odoo Community Association (OCA)%' THEN 'OCA' | ||
| else 'Undefined Author' END as x_author_type | ||
| FROM ir_module_module | ||
| ]]> | ||
| </field> | ||
| </record> | ||
| </odoo> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,14 @@ | ||
| <?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> | ||
| <record id="base.group_no_one" model="res.groups"> | ||
| <field name="user_ids" eval="[(4, ref('base.user_admin'))]" /> | ||
| </record> | ||
| <record id="sql_request_abstract.group_sql_request_user" model="res.groups"> | ||
| <field name="user_ids" eval="[(4, ref('base.user_demo'))]" /> | ||
| </record> | ||
| </odoo> | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,8 @@ | ||
| # Copyright 2015-2017 Onestein (<http://www.onestein.eu>) | ||
| # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html). | ||
|
|
||
|
|
||
| def uninstall_hook(env): | ||
| recs = env["bi.sql.view"].search([]) | ||
| for rec in recs: | ||
| rec.button_set_draft() |
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
<field name="user_ids" eval="[Command.link(ref('base.user_admin'))]" />There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you check the commit “[MIG] bi_sql_editor: Migration to 19.0”? It's like that.
Except for the command, which I don't think is necessary.