Browse Source

[UPD] README.rst

pull/1527/head
OCA-git-bot 5 years ago
parent
commit
be9e9a6504
  1. 10
      sql_request_abstract/README.rst
  2. 43
      sql_request_abstract/static/description/index.html

10
sql_request_abstract/README.rst

@ -56,7 +56,7 @@ Usage
Inherit the model: Inherit the model:
from openerp import models
from odoo import models
class MyModel(models.model) class MyModel(models.model)
_name = 'my.model' _name = 'my.model'
@ -91,14 +91,6 @@ Contributors
* Florian da Costa <florian.dacosta@akretion.com> * Florian da Costa <florian.dacosta@akretion.com>
* Sylvain LE GAL (https://twitter.com/legalsylvain) * Sylvain LE GAL (https://twitter.com/legalsylvain)
Funders
~~~~~~~
The development of this module has been financially supported by:
* Akretion (<http://www.akretion.com>)
* GRAP, Groupement Régional Alimentaire de Proximité (<http://www.grap.coop>)
Maintainers Maintainers
~~~~~~~~~~~ ~~~~~~~~~~~

43
sql_request_abstract/static/description/index.html

@ -3,13 +3,13 @@
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<head> <head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" /> <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="generator" content="Docutils 0.12: http://docutils.sourceforge.net/" />
<meta name="generator" content="Docutils 0.14: http://docutils.sourceforge.net/" />
<title>SQL Request Abstract</title> <title>SQL Request Abstract</title>
<style type="text/css"> <style type="text/css">
/* /*
:Author: David Goodger (goodger@python.org) :Author: David Goodger (goodger@python.org)
:Id: $Id: html4css1.css 7614 2013-02-21 15:55:51Z milde $
:Id: $Id: html4css1.css 7952 2016-07-26 18:15:59Z milde $
:Copyright: This stylesheet has been placed in the public domain. :Copyright: This stylesheet has been placed in the public domain.
Default cascading style sheet for the HTML output of Docutils. Default cascading style sheet for the HTML output of Docutils.
@ -37,6 +37,14 @@ table.borderless td, table.borderless th {
.hidden { .hidden {
display: none } display: none }
.subscript {
vertical-align: sub;
font-size: smaller }
.superscript {
vertical-align: super;
font-size: smaller }
a.toc-backref { a.toc-backref {
text-decoration: none ; text-decoration: none ;
color: black } color: black }
@ -161,12 +169,12 @@ h2.subtitle {
hr.docutils { hr.docutils {
width: 75% } width: 75% }
img.align-left, .figure.align-left, object.align-left {
img.align-left, .figure.align-left, object.align-left, table.align-left {
clear: left ; clear: left ;
float: left ; float: left ;
margin-right: 1em } margin-right: 1em }
img.align-right, .figure.align-right, object.align-right {
img.align-right, .figure.align-right, object.align-right, table.align-right {
clear: right ; clear: right ;
float: right ; float: right ;
margin-left: 1em } margin-left: 1em }
@ -177,6 +185,11 @@ img.align-center, .figure.align-center, object.align-center {
margin-right: auto; margin-right: auto;
} }
table.align-center {
margin-left: auto;
margin-right: auto;
}
.align-left { .align-left {
text-align: left } text-align: left }
@ -194,6 +207,15 @@ div.align-right {
/* div.align-center * { */ /* div.align-center * { */
/* text-align: left } */ /* text-align: left } */
.align-top {
vertical-align: top }
.align-middle {
vertical-align: middle }
.align-bottom {
vertical-align: bottom }
ol.simple, ul.simple { ol.simple, ul.simple {
margin-bottom: 1em } margin-bottom: 1em }
@ -351,10 +373,10 @@ It is not usefull for itself. You can see an exemple of implementation in the
‘sql_export’ module. (same repository).</p> ‘sql_export’ module. (same repository).</p>
<div class="section" id="implemented-features"> <div class="section" id="implemented-features">
<h1>Implemented features</h1> <h1>Implemented features</h1>
<ul>
<ul class="simple">
<li><dl class="first docutils"> <li><dl class="first docutils">
<dt>Add some restrictions in the sql request:</dt> <dt>Add some restrictions in the sql request:</dt>
<dd><ul class="first last simple">
<dd><ul class="first last">
<li>you can only read datas. No update, deletion or creation are possible.</li> <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 <li>some tables are not allowed, because they could contains clear password
or keys. For the time being (‘ir_config_parameter’).</li> or keys. For the time being (‘ir_config_parameter’).</li>
@ -362,13 +384,12 @@ or keys. For the time being (‘ir_config_parameter’).</li>
</dd> </dd>
</dl> </dl>
</li> </li>
<li><p class="first">The request can be in a ‘draft’ or a ‘SQL Valid’ status. To be valid,
<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 the request has to be cleaned, checked and tested. All of this operations
can be disabled in the inherited modules.</p>
</li>
can be disabled in the inherited modules.</li>
<li><dl class="first docutils"> <li><dl class="first docutils">
<dt>This module two new groups:</dt> <dt>This module two new groups:</dt>
<dd><ul class="first last simple">
<dd><ul class="first last">
<li>SQL Request / User : Can see all the sql requests by default and execute <li>SQL Request / User : Can see all the sql requests by default and execute
them, if they are valid.</li> them, if they are valid.</li>
<li>SQL Request / Manager : has full access on sql requests.</li> <li>SQL Request / Manager : has full access on sql requests.</li>
@ -389,7 +410,7 @@ them, if they are valid.</li>
<h2><a class="toc-backref" href="#id1">Usage</a></h2> <h2><a class="toc-backref" href="#id1">Usage</a></h2>
<p>Inherit the model:</p> <p>Inherit the model:</p>
<blockquote> <blockquote>
<p>from openerp import models</p>
<p>from odoo import models</p>
<dl class="docutils"> <dl class="docutils">
<dt>class MyModel(models.model)</dt> <dt>class MyModel(models.model)</dt>
<dd><p class="first">_name = ‘my.model’ <dd><p class="first">_name = ‘my.model’

Loading…
Cancel
Save