mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
[MIG] sql_request_abstract: Migration to 17.0
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
||||
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
||||
<head>
|
||||
@@ -369,35 +368,28 @@ ul.auto-toc {
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
|
||||
!! source digest: sha256:e65a56914d10ae27bb307f92fe00fa9c00a67f0842a1227a7a2a869c1847a166
|
||||
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/16.0/sql_request_abstract"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-sql_request_abstract"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=16.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module provides an abstract model to manage SQL Select requests on database.
|
||||
It is not usefull for itself. You can see an exemple of implementation in the
|
||||
‘sql_export’ module. (same repository).</p>
|
||||
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/agpl-3.0-standalone.html"><img alt="License: AGPL-3" src="https://img.shields.io/badge/licence-AGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/reporting-engine/tree/17.0/sql_request_abstract"><img alt="OCA/reporting-engine" src="https://img.shields.io/badge/github-OCA%2Freporting--engine-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/reporting-engine-17-0/reporting-engine-17-0-sql_request_abstract"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/reporting-engine&target_branch=17.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
|
||||
<p>This module provides an abstract model to manage SQL Select requests on
|
||||
database. It is not usefull for itself. You can see an exemple of
|
||||
implementation in the ‘sql_export’ module. (same repository).</p>
|
||||
<div class="section" id="implemented-features">
|
||||
<h1>Implemented features</h1>
|
||||
<ul class="simple">
|
||||
<li><dl class="first docutils">
|
||||
<dt>Add some restrictions in the sql request:</dt>
|
||||
<dd><ul class="first last">
|
||||
<li>you can only read datas. No update, deletion or creation are possible.</li>
|
||||
<li>some tables are not allowed, because they could contains clear password
|
||||
or keys. For the time being (‘ir_config_parameter’).</li>
|
||||
<li>Add some restrictions in the sql request:<ul>
|
||||
<li>you can only read datas. No update, deletion or creation are
|
||||
possible.</li>
|
||||
<li>some tables are not allowed, because they could contains clear
|
||||
password or keys. For the time being (‘ir_config_parameter’).</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
<li>The request can be in a ‘draft’ or a ‘SQL Valid’ status. To be valid,
|
||||
the request has to be cleaned, checked and tested. All of this operations
|
||||
can be disabled in the inherited modules.</li>
|
||||
<li><dl class="first docutils">
|
||||
<dt>This module two new groups:</dt>
|
||||
<dd><ul class="first last">
|
||||
<li>SQL Request / User : Can see all the sql requests by default and execute
|
||||
them, if they are valid.</li>
|
||||
the request has to be cleaned, checked and tested. All of this
|
||||
operations can be disabled in the inherited modules.</li>
|
||||
<li>This module two new groups:<ul>
|
||||
<li>SQL Request / User : Can see all the sql requests by default and
|
||||
execute them, if they are valid.</li>
|
||||
<li>SQL Request / Manager : has full access on sql requests.</li>
|
||||
</ul>
|
||||
</dd>
|
||||
</dl>
|
||||
</li>
|
||||
</ul>
|
||||
<p><strong>Table of contents</strong></p>
|
||||
@@ -423,13 +415,14 @@ them, if they are valid.</li>
|
||||
|
||||
</span> <span class="n">_sql_request_users_relation</span> <span class="o">=</span> <span class="s1">'my_model_users_rel'</span>
|
||||
</pre>
|
||||
<p>See implementations in the modules <tt class="docutils literal">bi_sql_editor</tt> and <tt class="docutils literal">sql_export</tt>. (same OCA/reporting-engine repository)</p>
|
||||
<p>See implementations in the modules <tt class="docutils literal">bi_sql_editor</tt> and <tt class="docutils literal">sql_export</tt>.
|
||||
(same OCA/reporting-engine repository)</p>
|
||||
</div>
|
||||
<div class="section" id="development">
|
||||
<h2><a class="toc-backref" href="#toc-entry-2">Development</a></h2>
|
||||
<p>This module add the ‘pgsql’ mode syntax for the ace widget.
|
||||
(the ace widget is used in odoo web module, but only with
|
||||
the xml and python mode).</p>
|
||||
<p>This module add the ‘pgsql’ mode syntax for the ace widget. (the ace
|
||||
widget is used in odoo web module, but only with the xml and python
|
||||
mode).</p>
|
||||
<p>The file is a copy of the file present here
|
||||
(<a class="reference external" href="https://github.com/ajaxorg/ace-builds/blob/v1.12.3/src/mode-pgsql.js">https://github.com/ajaxorg/ace-builds/blob/v1.12.3/src/mode-pgsql.js</a>
|
||||
(Release 18 Oct 2022)</p>
|
||||
@@ -439,7 +432,7 @@ the xml and python mode).</p>
|
||||
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/reporting-engine/issues">GitHub Issues</a>.
|
||||
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
|
||||
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20sql_request_abstract%0Aversion:%2016.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<a class="reference external" href="https://github.com/OCA/reporting-engine/issues/new?body=module:%20sql_request_abstract%0Aversion:%2017.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
|
||||
<p>Do not contact contributors directly about support or help with technical issues.</p>
|
||||
</div>
|
||||
<div class="section" id="credits">
|
||||
@@ -460,6 +453,7 @@ If you spotted it first, help us to smash it by providing a detailed and welcome
|
||||
<li>Sylvain LE GAL (<a class="reference external" href="https://twitter.com/legalsylvain">https://twitter.com/legalsylvain</a>)</li>
|
||||
<li>Alfadil Tabar (<a class="reference external" href="mailto:alfadil.tabar@gmail.com">alfadil.tabar@gmail.com</a>)</li>
|
||||
<li>Helly kapatel <<a class="reference external" href="mailto:helly.kapatel@initos.com">helly.kapatel@initos.com</a>></li>
|
||||
<li>Nguyen Minh Chien <<a class="reference external" href="mailto:chien@trobz.com">chien@trobz.com</a>></li>
|
||||
</ul>
|
||||
</div>
|
||||
<div class="section" id="maintainers">
|
||||
@@ -471,7 +465,7 @@ mission is to support the collaborative development of Odoo features and
|
||||
promote its widespread use.</p>
|
||||
<p>Current <a class="reference external" href="https://odoo-community.org/page/maintainer-role">maintainer</a>:</p>
|
||||
<p><a class="reference external image-reference" href="https://github.com/legalsylvain"><img alt="legalsylvain" src="https://github.com/legalsylvain.png?size=40px" /></a></p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/16.0/sql_request_abstract">OCA/reporting-engine</a> project on GitHub.</p>
|
||||
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/reporting-engine/tree/17.0/sql_request_abstract">OCA/reporting-engine</a> project on GitHub.</p>
|
||||
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
8
sql_request_abstract/static/src/js/code_editor.esm.js
Normal file
8
sql_request_abstract/static/src/js/code_editor.esm.js
Normal file
@@ -0,0 +1,8 @@
|
||||
/** @odoo-module **/
|
||||
|
||||
import {CodeEditor} from "@web/core/code_editor/code_editor";
|
||||
import {patch} from "@web/core/utils/patch";
|
||||
|
||||
patch(CodeEditor, {
|
||||
MODES: [...CodeEditor.MODES, "pgsql"],
|
||||
});
|
||||
Reference in New Issue
Block a user