From c3c8c72e140939047111faf6ee5e49213dd40b2d Mon Sep 17 00:00:00 2001 From: jcoux Date: Wed, 24 Jul 2019 15:21:09 +0200 Subject: [PATCH] [MIG] server_env_connector_magento: Migration to 12.0 --- server_env_connector_magento/README.rst | 77 ++-- server_env_connector_magento/__init__.py | 2 - server_env_connector_magento/__manifest__.py | 34 +- .../i18n/server_env_connector_magento.pot | 20 - .../models/__init__.py | 1 - .../models/magento_backend.py | 3 +- .../readme/CONFIGURE.rst | 10 + .../readme/CONTRIBUTORS.rst | 2 + .../readme/DESCRIPTION.rst | 4 + .../static/description/index.html | 436 ++++++++++++++++++ 10 files changed, 515 insertions(+), 74 deletions(-) delete mode 100644 server_env_connector_magento/i18n/server_env_connector_magento.pot create mode 100644 server_env_connector_magento/readme/CONFIGURE.rst create mode 100644 server_env_connector_magento/readme/CONTRIBUTORS.rst create mode 100644 server_env_connector_magento/readme/DESCRIPTION.rst create mode 100644 server_env_connector_magento/static/description/index.html diff --git a/server_env_connector_magento/README.rst b/server_env_connector_magento/README.rst index 7e4ea01d3..030aa814d 100644 --- a/server_env_connector_magento/README.rst +++ b/server_env_connector_magento/README.rst @@ -1,25 +1,42 @@ - -.. image:: https://img.shields.io/badge/licence-AGPL--3-blue.svg - :target: http://www.gnu.org/licenses/agpl-3.0-standalone.html - :alt: License: AGPL-3 - ==================================================== Magento Connector - Server Environment Configuration ==================================================== +.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + !! 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%2Fconnector--magento-lightgray.png?logo=github + :target: https://github.com/OCA/connector-magento/tree/12.0/server_env_connector_magento + :alt: OCA/connector-magento +.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png + :target: https://translation.odoo-community.org/projects/connector-magento-12-0/connector-magento-12-0-server_env_connector_magento + :alt: Translate me on Weblate +.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png + :target: https://runbot.odoo-community.org/runbot/107/12.0 + :alt: Try me on Runbot + +|badge1| |badge2| |badge3| |badge4| |badge5| + This module is based on the ``server_environment`` module to use files for configuration. Thus we can have a different configutation for each environment (dev, test, staging, prod). This module define the config variables for the ``connector_magento`` module. +**Table of contents** -Installation -============ +.. contents:: + :local: -Install the addon. - -Configuration and usage -======================= +Configuration +============= In the configuration file, you can configure the url, login and password of the Magento Backends. @@ -32,45 +49,43 @@ Exemple of the section to put in the configuration file:: password = my_api_password -Usage -===== - -.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas - :alt: Try me on Runbot - :target: https://runbot.odoo-community.org/runbot/107/10.0 - 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. +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 ======= -Images ------- +Authors +~~~~~~~ -* Odoo Community Association: `Icon `_. +* Camptocamp Contributors ------------- +~~~~~~~~~~~~ * Guewen Baconnier +* Julien Coux + +Maintainers +~~~~~~~~~~~ -Maintainer ----------- +This module is maintained by the OCA. .. image:: https://odoo-community.org/logo.png :alt: Odoo Community Association :target: https://odoo-community.org -This module is maintained by the OCA. - 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. -To contribute to this module, please visit https://odoo-community.org. +This module is part of the `OCA/connector-magento `_ project on GitHub. + +You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/server_env_connector_magento/__init__.py b/server_env_connector_magento/__init__.py index cde864bae..0650744f6 100644 --- a/server_env_connector_magento/__init__.py +++ b/server_env_connector_magento/__init__.py @@ -1,3 +1 @@ -# -*- coding: utf-8 -*- - from . import models diff --git a/server_env_connector_magento/__manifest__.py b/server_env_connector_magento/__manifest__.py index 84e5d4513..93a2de1ad 100644 --- a/server_env_connector_magento/__manifest__.py +++ b/server_env_connector_magento/__manifest__.py @@ -1,20 +1,18 @@ -# -*- coding: utf-8 -*- -# Copyright 2014-2017 Camptocamp SA +# Copyright 2014-2019 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) -{'name': 'Magento Connector - Server Environment Configuration', - 'version': '10.0.1.0.0', - 'author': "Camptocamp,Odoo Community Association (OCA)", - 'maintainer': 'Camptocamp', - 'license': 'AGPL-3', - 'category': 'Hidden', - 'depends': ['base', - 'server_environment', - 'connector_magento', - ], - 'website': 'https://www.camptocamp.com', - 'data': [], - 'test': [], - 'installable': True, - 'auto_install': False, - } +{ + 'name': 'Magento Connector - Server Environment Configuration', + 'version': '12.0.1.0.0', + 'author': "Camptocamp,Odoo Community Association (OCA)", + 'maintainer': 'Camptocamp', + 'license': 'AGPL-3', + 'category': 'Hidden', + 'depends': [ + 'base', + 'server_environment', + 'connector_magento', + ], + 'website': 'https://www.camptocamp.com', + 'installable': True, +} diff --git a/server_env_connector_magento/i18n/server_env_connector_magento.pot b/server_env_connector_magento/i18n/server_env_connector_magento.pot deleted file mode 100644 index 2c4630601..000000000 --- a/server_env_connector_magento/i18n/server_env_connector_magento.pot +++ /dev/null @@ -1,20 +0,0 @@ -# Translation of Odoo Server. -# This file contains the translation of the following modules: -# * server_env_connector_magento -# -msgid "" -msgstr "" -"Project-Id-Version: Odoo Server 10.0\n" -"Report-Msgid-Bugs-To: \n" -"Last-Translator: <>\n" -"Language-Team: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: \n" -"Plural-Forms: \n" - -#. module: server_env_connector_magento -#: model:ir.model,name:server_env_connector_magento.model_magento_backend -msgid "Magento Backend" -msgstr "" - diff --git a/server_env_connector_magento/models/__init__.py b/server_env_connector_magento/models/__init__.py index 2f8c19c21..c9953ccfe 100644 --- a/server_env_connector_magento/models/__init__.py +++ b/server_env_connector_magento/models/__init__.py @@ -1,2 +1 @@ -# -*- coding: utf-8 -*- from . import magento_backend diff --git a/server_env_connector_magento/models/magento_backend.py b/server_env_connector_magento/models/magento_backend.py index 743ab0438..3ef59aa13 100644 --- a/server_env_connector_magento/models/magento_backend.py +++ b/server_env_connector_magento/models/magento_backend.py @@ -1,5 +1,4 @@ -# -*- coding: utf-8 -*- -# Copyright 2014-2017 Camptocamp SA +# Copyright 2014-2019 Camptocamp SA # License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html) import logging diff --git a/server_env_connector_magento/readme/CONFIGURE.rst b/server_env_connector_magento/readme/CONFIGURE.rst new file mode 100644 index 000000000..f328deaec --- /dev/null +++ b/server_env_connector_magento/readme/CONFIGURE.rst @@ -0,0 +1,10 @@ +In the configuration file, you can configure the url, login and +password of the Magento Backends. + +Exemple of the section to put in the configuration file:: + + [magento_backend.name_of_the_backend] + location = http://localhost/magento/ + username = my_api_login + password = my_api_password + diff --git a/server_env_connector_magento/readme/CONTRIBUTORS.rst b/server_env_connector_magento/readme/CONTRIBUTORS.rst new file mode 100644 index 000000000..f6168461c --- /dev/null +++ b/server_env_connector_magento/readme/CONTRIBUTORS.rst @@ -0,0 +1,2 @@ +* Guewen Baconnier +* Julien Coux \ No newline at end of file diff --git a/server_env_connector_magento/readme/DESCRIPTION.rst b/server_env_connector_magento/readme/DESCRIPTION.rst new file mode 100644 index 000000000..f5f792aa5 --- /dev/null +++ b/server_env_connector_magento/readme/DESCRIPTION.rst @@ -0,0 +1,4 @@ +This module is based on the ``server_environment`` module to use files for +configuration. Thus we can have a different configutation for each +environment (dev, test, staging, prod). This module define the config +variables for the ``connector_magento`` module. \ No newline at end of file diff --git a/server_env_connector_magento/static/description/index.html b/server_env_connector_magento/static/description/index.html new file mode 100644 index 000000000..fb28065d2 --- /dev/null +++ b/server_env_connector_magento/static/description/index.html @@ -0,0 +1,436 @@ + + + + + + +Magento Connector - Server Environment Configuration + + + +
+

Magento Connector - Server Environment Configuration

+ + +

Beta License: AGPL-3 OCA/connector-magento Translate me on Weblate Try me on Runbot

+

This module is based on the server_environment module to use files for +configuration. Thus we can have a different configutation for each +environment (dev, test, staging, prod). This module define the config +variables for the connector_magento module.

+

Table of contents

+ +
+

Configuration

+

In the configuration file, you can configure the url, login and +password of the Magento Backends.

+

Exemple of the section to put in the configuration file:

+
+[magento_backend.name_of_the_backend]
+location = http://localhost/magento/
+username = my_api_login
+password = my_api_password
+
+
+
+

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

+
    +
  • Camptocamp
  • +
+
+ +
+

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.

+

This module is part of the OCA/connector-magento project on GitHub.

+

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

+
+
+
+ +