From 05354416b6e523ac3e3675e6a2e4333901902b02 Mon Sep 17 00:00:00 2001 From: OCA-git-bot Date: Wed, 23 Nov 2022 08:41:53 +0000 Subject: [PATCH] [UPD] README.rst --- sql_request_abstract/README.rst | 26 ++++++++-- .../static/description/index.html | 47 ++++++++++++------- 2 files changed, 50 insertions(+), 23 deletions(-) diff --git a/sql_request_abstract/README.rst b/sql_request_abstract/README.rst index 386bfd47a..5ace1c939 100644 --- a/sql_request_abstract/README.rst +++ b/sql_request_abstract/README.rst @@ -14,13 +14,13 @@ SQL Request Abstract :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/15.0/sql_request_abstract + :target: https://github.com/OCA/reporting-engine/tree/16.0/sql_request_abstract :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-15-0/reporting-engine-15-0-sql_request_abstract + :target: https://translation.odoo-community.org/projects/reporting-engine-16-0/reporting-engine-16-0-sql_request_abstract :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/143/15.0 + :target: https://runbot.odoo-community.org/runbot/143/16.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -56,6 +56,8 @@ Usage Inherit the model: +.. code-block:: python + from odoo import models class MyModel(models.model) @@ -66,13 +68,27 @@ Inherit the model: _sql_request_users_relation = 'my_model_users_rel' + +See implementations in the modules ``bi_sql_editor`` and ``sql_export``. (same OCA/reporting-engine repository) + +Development +=========== + +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). + +The file is a copy of the file present here +(https://github.com/ajaxorg/ace-builds/blob/v1.12.3/src/mode-pgsql.js +(Release 18 Oct 2022) + Bug Tracker =========== Bugs are tracked on `GitHub Issues `_. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -`feedback `_. +`feedback `_. Do not contact contributors directly about support or help with technical issues. @@ -114,6 +130,6 @@ Current `maintainer `__: |maintainer-legalsylvain| -This module is part of the `OCA/reporting-engine `_ project on GitHub. +This module is part of the `OCA/reporting-engine `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/sql_request_abstract/static/description/index.html b/sql_request_abstract/static/description/index.html index 9a0a49136..46fa84ec4 100644 --- a/sql_request_abstract/static/description/index.html +++ b/sql_request_abstract/static/description/index.html @@ -367,7 +367,7 @@ ul.auto-toc { !! This file is generated by oca-gen-addon-readme !! !! changes will be overwritten. !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: AGPL-3 OCA/reporting-engine Translate me on Weblate Try me on Runbot

+

Beta License: AGPL-3 OCA/reporting-engine Translate me on Weblate Try me on Runbot

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).

@@ -402,35 +402,46 @@ them, if they are valid.

Usage

Inherit the model:

-
-

from odoo import models

-
-
class MyModel(models.model)
-

_name = ‘my.model’ -_inherit = [‘sql.request.mixin’]

-

_sql_request_groups_relation = ‘my_model_groups_rel’

-

_sql_request_users_relation = ‘my_model_users_rel’

-
-
-
+
+from odoo import models
+
+class MyModel(models.model)
+    _name = 'my.model'
+    _inherit = ['sql.request.mixin']
+
+    _sql_request_groups_relation = 'my_model_groups_rel'
+
+    _sql_request_users_relation = 'my_model_users_rel'
+
+

See implementations in the modules bi_sql_editor and sql_export. (same OCA/reporting-engine repository)

+
+
+

Development

+

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).

+

The file is a copy of the file present here +(https://github.com/ajaxorg/ace-builds/blob/v1.12.3/src/mode-pgsql.js +(Release 18 Oct 2022)

-

Bug Tracker

+

Bug Tracker

Bugs are tracked on GitHub Issues. In case of trouble, please check there if your issue has already been reported. If you spotted it first, help us smashing it by providing a detailed and welcomed -feedback.

+feedback.

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

@@ -458,7 +469,7 @@ mission is to support the collaborative development of Odoo features and promote its widespread use.

Current maintainer:

legalsylvain

-

This module is part of the OCA/reporting-engine project on GitHub.

+

This module is part of the OCA/reporting-engine project on GitHub.

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