diff --git a/iap_alternative_provider_environment/README.rst b/iap_alternative_provider_environment/README.rst new file mode 100644 index 0000000..ec70d2d --- /dev/null +++ b/iap_alternative_provider_environment/README.rst @@ -0,0 +1,87 @@ +==================================== +IAP Alternative Provider Environment +==================================== + +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! This file is generated by oca-gen-addon-readme !! + !! changes will be overwritten. !! + !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +.. |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/licence-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%2Fserver--env-lightgray.png?logo=github + :target: https://github.com/OCA/server-env/tree/15.0/iap_alternative_provider_environment + :alt: OCA/server-env +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/server-env-15-0/server-env-15-0-iap_alternative_provider_environment + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/254/15.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + +This is a base module that allows to configure the IAP services (sms, ...) +using the `server_environment` mechanism: you can then have different +IAP servers for the production and the test environment. + +This code was part of `server-tools/ipa_alternative_provider` on version +**14.0** and earlier. + +**Table of contents** + +.. contents:: + :local: + +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 `_. + +Do not contact contributors directly about support or help with technical issues. + +Credits +======= + +Authors +~~~~~~~ + +* Moka Tourisme + +Contributors +~~~~~~~~~~~~ + +* Sébastien BEAU +* Pierre Verkest + +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-petrus-v| image:: https://github.com/petrus-v.png?size=40px + :target: https://github.com/petrus-v + :alt: petrus-v + +Current `maintainer `__: + +|maintainer-petrus-v| + +This module is part of the `OCA/server-env `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/iap_alternative_provider_environment/__init__.py b/iap_alternative_provider_environment/__init__.py new file mode 100644 index 0000000..0650744 --- /dev/null +++ b/iap_alternative_provider_environment/__init__.py @@ -0,0 +1 @@ +from . import models diff --git a/iap_alternative_provider_environment/__manifest__.py b/iap_alternative_provider_environment/__manifest__.py new file mode 100644 index 0000000..afd9f1c --- /dev/null +++ b/iap_alternative_provider_environment/__manifest__.py @@ -0,0 +1,19 @@ +# Copyright 2022 Moka Tourisme (https://www.mokatourisme.fr). +# @author Pierre Verkest +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). +{ + "name": "IAP Alternative Provider Environment", + "summary": "Base module for providing alternative provider environment for iap apps", + "version": "15.0.1.0.0", + "category": "Tools", + "website": "https://github.com/OCA/server-env", + "author": "Moka Tourisme, Odoo Community Association (OCA)", + "maintainers": ["petrus-v"], + "license": "AGPL-3", + "application": False, + "installable": True, + "external_dependencies": {"python": [], "bin": []}, + "depends": ["iap_alternative_provider_env", "server_environment"], + "data": [], + "demo": [], +} diff --git a/iap_alternative_provider_environment/models/__init__.py b/iap_alternative_provider_environment/models/__init__.py new file mode 100644 index 0000000..966d7e1 --- /dev/null +++ b/iap_alternative_provider_environment/models/__init__.py @@ -0,0 +1 @@ +from . import iap_account diff --git a/iap_alternative_provider_environment/models/iap_account.py b/iap_alternative_provider_environment/models/iap_account.py new file mode 100644 index 0000000..287d87c --- /dev/null +++ b/iap_alternative_provider_environment/models/iap_account.py @@ -0,0 +1,17 @@ +# Copyright 2020 Akretion (https://www.akretion.com). +# @author Sébastien BEAU +# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). + +from odoo import models + + +class IapAccount(models.Model): + _inherit = ["iap.account", "server.env.mixin"] + _name = "iap.account" + + @property + def _server_env_fields(self): + return { + "provider": {}, + "account_token": {}, + } diff --git a/iap_alternative_provider_environment/readme/CONTRIBUTORS.rst b/iap_alternative_provider_environment/readme/CONTRIBUTORS.rst new file mode 100644 index 0000000..87ea644 --- /dev/null +++ b/iap_alternative_provider_environment/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Sébastien BEAU +* Pierre Verkest diff --git a/iap_alternative_provider_environment/readme/DESCRIPTION.rst b/iap_alternative_provider_environment/readme/DESCRIPTION.rst new file mode 100644 index 0000000..b87770b --- /dev/null +++ b/iap_alternative_provider_environment/readme/DESCRIPTION.rst @@ -0,0 +1,6 @@ +This is a base module that allows to configure the IAP services (sms, ...) +using the `server_environment` mechanism: you can then have different +IAP servers for the production and the test environment. + +This code was part of `server-tools/ipa_alternative_provider` on version +**14.0** and earlier. diff --git a/iap_alternative_provider_environment/static/description/icon.png b/iap_alternative_provider_environment/static/description/icon.png new file mode 100644 index 0000000..3a0328b Binary files /dev/null and b/iap_alternative_provider_environment/static/description/icon.png differ diff --git a/iap_alternative_provider_environment/static/description/index.html b/iap_alternative_provider_environment/static/description/index.html new file mode 100644 index 0000000..5e1febe --- /dev/null +++ b/iap_alternative_provider_environment/static/description/index.html @@ -0,0 +1,426 @@ + + + + + + +IAP Alternative Provider Environment + + + +
+

IAP Alternative Provider Environment

+ + +

Beta License: AGPL-3 OCA/server-env Translate me on Weblate Try me on Runbot

+

This is a base module that allows to configure the IAP services (sms, …) +using the server_environment mechanism: you can then have different +IAP servers for the production and the test environment.

+

This code was part of server-tools/ipa_alternative_provider on version +14.0 and earlier.

+

Table of contents

+ +
+

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.

+

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

+
+
+

Credits

+
+

Authors

+
    +
  • Moka Tourisme
  • +
+
+
+

Contributors

+ +
+
+

Maintainers

+

This module is maintained by the OCA.

+Odoo Community Association +

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.

+

Current maintainer:

+

petrus-v

+

This module is part of the OCA/server-env project on GitHub.

+

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

+
+
+
+ + diff --git a/setup/iap_alternative_provider_environment/odoo/addons/iap_alternative_provider_environment b/setup/iap_alternative_provider_environment/odoo/addons/iap_alternative_provider_environment new file mode 120000 index 0000000..ad9a86b --- /dev/null +++ b/setup/iap_alternative_provider_environment/odoo/addons/iap_alternative_provider_environment @@ -0,0 +1 @@ +../../../../iap_alternative_provider_environment \ No newline at end of file diff --git a/setup/iap_alternative_provider_environment/setup.py b/setup/iap_alternative_provider_environment/setup.py new file mode 100644 index 0000000..28c57bb --- /dev/null +++ b/setup/iap_alternative_provider_environment/setup.py @@ -0,0 +1,6 @@ +import setuptools + +setuptools.setup( + setup_requires=['setuptools-odoo'], + odoo_addon=True, +)