diff --git a/base_external_dbsource/README.rst b/base_external_dbsource/README.rst index 636c3202..56e6b351 100644 --- a/base_external_dbsource/README.rst +++ b/base_external_dbsource/README.rst @@ -14,13 +14,13 @@ External Database Sources :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--backend-lightgray.png?logo=github - :target: https://github.com/OCA/server-backend/tree/14.0/base_external_dbsource + :target: https://github.com/OCA/server-backend/tree/15.0/base_external_dbsource :alt: OCA/server-backend .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/server-backend-14-0/server-backend-14-0-base_external_dbsource + :target: https://translation.odoo-community.org/projects/server-backend-15-0/server-backend-15-0-base_external_dbsource :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png - :target: https://runbot.odoo-community.org/runbot/253/14.0 + :target: https://runbot.odoo-community.org/runbot/253/15.0 :alt: Try me on Runbot |badge1| |badge2| |badge3| |badge4| |badge5| @@ -75,7 +75,7 @@ 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. @@ -95,8 +95,11 @@ Contributors * Maxime Chambreuil * Gervais Naoussi * Dave Lasley -* Sergio Teruel (https://wwww.tecnativa.com) -* Jairo Llopis (https://wwww.tecnativa.com) + +* `Tecnativa `_: + + * Sergio Teruel + * Jairo Llopis Maintainers ~~~~~~~~~~~ @@ -111,6 +114,6 @@ 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. -This module is part of the `OCA/server-backend `_ project on GitHub. +This module is part of the `OCA/server-backend `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/base_external_dbsource/__manifest__.py b/base_external_dbsource/__manifest__.py index c005d4c8..c8f619b2 100644 --- a/base_external_dbsource/__manifest__.py +++ b/base_external_dbsource/__manifest__.py @@ -3,7 +3,7 @@ # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl). { "name": "External Database Sources", - "version": "14.0.1.0.1", + "version": "15.0.1.0.0", "category": "Tools", "author": "Daniel Reis, " "LasLabs, " "Odoo Community Association (OCA)", "website": "https://github.com/OCA/server-backend", diff --git a/base_external_dbsource/models/base_external_dbsource.py b/base_external_dbsource/models/base_external_dbsource.py index 8c013845..78a652da 100644 --- a/base_external_dbsource/models/base_external_dbsource.py +++ b/base_external_dbsource/models/base_external_dbsource.py @@ -63,13 +63,12 @@ class BaseExternalDbsource(models.Model): default=lambda self: self.env.user.company_id, ) conn_string_full = fields.Text(readonly=True, compute="_compute_conn_string_full") - password = fields.Char("Password") + password = fields.Char() client_cert = fields.Text() client_key = fields.Text() ca_certs = fields.Char(help="Path to CA Certs file on server.") connector = fields.Selection( CONNECTORS, - "Connector", required=True, help="If a connector is missing from the list, check the server " "log to confirm that the required components were detected.", @@ -151,12 +150,12 @@ class BaseExternalDbsource(models.Model): try: query = kwargs["sqlquery"] except KeyError: - raise TypeError(_("query is a required argument")) + raise TypeError(_("query is a required argument")) from KeyError if not execute_params: try: execute_params = kwargs["sqlparams"] - except KeyError: - pass + except KeyError as e: + _logger.debug(e) method = self._get_adapter_method("execute") rows, cols = method(query, execute_params, metadata) @@ -179,7 +178,7 @@ class BaseExternalDbsource(models.Model): raise ValidationError( _("Connection test failed:\n" "Here is what we got instead:\n%s") % tools.ustr(e) - ) + ) from e raise ValidationError( _("Connection test succeeded:\n" "Everything seems properly set up!") ) @@ -330,7 +329,9 @@ class BaseExternalDbsource(models.Model): except AttributeError: raise NotImplementedError( _( - '"%s" method not found, check that all assets are installed ' - "for the %s connector type." + '"%(method)s" method not found, check that all assets are installed ' + "for the %(connector)s connector type.", + method=method, + conector=self.connector, ) - ) % (method, self.connector) + ) from AttributeError diff --git a/base_external_dbsource/readme/CONTRIBUTORS.rst b/base_external_dbsource/readme/CONTRIBUTORS.rst index c6c89ba5..babd4411 100644 --- a/base_external_dbsource/readme/CONTRIBUTORS.rst +++ b/base_external_dbsource/readme/CONTRIBUTORS.rst @@ -2,5 +2,8 @@ * Maxime Chambreuil * Gervais Naoussi * Dave Lasley -* Sergio Teruel (https://wwww.tecnativa.com) -* Jairo Llopis (https://wwww.tecnativa.com) + +* `Tecnativa `_: + + * Sergio Teruel + * Jairo Llopis diff --git a/base_external_dbsource/static/description/index.html b/base_external_dbsource/static/description/index.html index 61984643..7b2516b0 100644 --- a/base_external_dbsource/static/description/index.html +++ b/base_external_dbsource/static/description/index.html @@ -3,7 +3,7 @@ - + External Database Sources