diff --git a/edi_endpoint_oca/README.rst b/edi_endpoint/README.rst similarity index 94% rename from edi_endpoint_oca/README.rst rename to edi_endpoint/README.rst index 6371542e3b..df8fe9e42b 100644 --- a/edi_endpoint_oca/README.rst +++ b/edi_endpoint/README.rst @@ -17,10 +17,10 @@ EDI endpoint :target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html :alt: License: LGPL-3 .. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github - :target: https://github.com/OCA/edi/tree/14.0/edi_endpoint_oca + :target: https://github.com/OCA/edi/tree/14.0/edi_endpoint :alt: OCA/edi .. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png - :target: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-edi_endpoint_oca + :target: https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-edi_endpoint :alt: Translate me on Weblate .. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png :target: https://runboat.odoo-community.org/builds?repo=OCA/edi&target_branch=14.0 @@ -76,6 +76,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/edi `_ project on GitHub. +This module is part of the `OCA/edi `_ project on GitHub. You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute. diff --git a/edi_endpoint_oca/__init__.py b/edi_endpoint/__init__.py similarity index 100% rename from edi_endpoint_oca/__init__.py rename to edi_endpoint/__init__.py diff --git a/edi_endpoint_oca/__manifest__.py b/edi_endpoint/__manifest__.py similarity index 100% rename from edi_endpoint_oca/__manifest__.py rename to edi_endpoint/__manifest__.py diff --git a/edi_endpoint_oca/data/server_action.xml b/edi_endpoint/data/server_action.xml similarity index 72% rename from edi_endpoint_oca/data/server_action.xml rename to edi_endpoint/data/server_action.xml index 897610d76c..0cbc6a69f6 100644 --- a/edi_endpoint_oca/data/server_action.xml +++ b/edi_endpoint/data/server_action.xml @@ -3,8 +3,8 @@ Sync registry ir.actions.server - - + + code records.filtered(lambda x: not x.registry_sync).write({"registry_sync": True}) diff --git a/edi_endpoint_oca/demo/edi_backend_demo.xml b/edi_endpoint/demo/edi_backend_demo.xml similarity index 100% rename from edi_endpoint_oca/demo/edi_backend_demo.xml rename to edi_endpoint/demo/edi_backend_demo.xml diff --git a/edi_endpoint_oca/i18n/edi_endpoint_oca.pot b/edi_endpoint/i18n/edi_endpoint_oca.pot similarity index 100% rename from edi_endpoint_oca/i18n/edi_endpoint_oca.pot rename to edi_endpoint/i18n/edi_endpoint_oca.pot diff --git a/edi_endpoint_oca/i18n/es.po b/edi_endpoint/i18n/es.po similarity index 100% rename from edi_endpoint_oca/i18n/es.po rename to edi_endpoint/i18n/es.po diff --git a/edi_endpoint_oca/migrations/14.0.1.4.0/post-migrate.py b/edi_endpoint/migrations/14.0.1.4.0/post-migrate.py similarity index 100% rename from edi_endpoint_oca/migrations/14.0.1.4.0/post-migrate.py rename to edi_endpoint/migrations/14.0.1.4.0/post-migrate.py diff --git a/edi_endpoint_oca/models/__init__.py b/edi_endpoint/models/__init__.py similarity index 100% rename from edi_endpoint_oca/models/__init__.py rename to edi_endpoint/models/__init__.py diff --git a/edi_endpoint_oca/models/edi_backend.py b/edi_endpoint/models/edi_backend.py similarity index 97% rename from edi_endpoint_oca/models/edi_backend.py rename to edi_endpoint/models/edi_backend.py index 57d3d2b6a3..1fb6e02a89 100644 --- a/edi_endpoint_oca/models/edi_backend.py +++ b/edi_endpoint/models/edi_backend.py @@ -26,7 +26,7 @@ def _compute_endpoints_count(self): record.endpoints_count = by_backend_id.get(record.id) def action_manage_endpoints(self): - module_name = "edi_endpoint_oca" + module_name = "edi_endpoint" action_xmlid = "edi_endpoint_act_window" action = self.env["ir.actions.act_window"].for_xml_id(module_name, action_xmlid) action["domain"] = [ diff --git a/edi_endpoint_oca/models/edi_backend_type.py b/edi_endpoint/models/edi_backend_type.py similarity index 100% rename from edi_endpoint_oca/models/edi_backend_type.py rename to edi_endpoint/models/edi_backend_type.py diff --git a/edi_endpoint_oca/models/edi_endpoint.py b/edi_endpoint/models/edi_endpoint.py similarity index 100% rename from edi_endpoint_oca/models/edi_endpoint.py rename to edi_endpoint/models/edi_endpoint.py diff --git a/edi_endpoint_oca/models/edi_exchange_record.py b/edi_endpoint/models/edi_exchange_record.py similarity index 100% rename from edi_endpoint_oca/models/edi_exchange_record.py rename to edi_endpoint/models/edi_exchange_record.py diff --git a/edi_endpoint_oca/readme/CONFIGURE.rst b/edi_endpoint/readme/CONFIGURE.rst similarity index 100% rename from edi_endpoint_oca/readme/CONFIGURE.rst rename to edi_endpoint/readme/CONFIGURE.rst diff --git a/edi_endpoint_oca/readme/CONTRIBUTORS.rst b/edi_endpoint/readme/CONTRIBUTORS.rst similarity index 100% rename from edi_endpoint_oca/readme/CONTRIBUTORS.rst rename to edi_endpoint/readme/CONTRIBUTORS.rst diff --git a/edi_endpoint_oca/readme/DESCRIPTION.rst b/edi_endpoint/readme/DESCRIPTION.rst similarity index 100% rename from edi_endpoint_oca/readme/DESCRIPTION.rst rename to edi_endpoint/readme/DESCRIPTION.rst diff --git a/edi_endpoint_oca/security/ir.model.access.csv b/edi_endpoint/security/ir.model.access.csv similarity index 100% rename from edi_endpoint_oca/security/ir.model.access.csv rename to edi_endpoint/security/ir.model.access.csv diff --git a/edi_endpoint_oca/static/description/icon.png b/edi_endpoint/static/description/icon.png similarity index 100% rename from edi_endpoint_oca/static/description/icon.png rename to edi_endpoint/static/description/icon.png diff --git a/edi_endpoint_oca/static/description/index.html b/edi_endpoint/static/description/index.html similarity index 94% rename from edi_endpoint_oca/static/description/index.html rename to edi_endpoint/static/description/index.html index a07e1ae8bf..51da679e36 100644 --- a/edi_endpoint_oca/static/description/index.html +++ b/edi_endpoint/static/description/index.html @@ -369,7 +369,7 @@

EDI endpoint

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! source digest: sha256:e8d566490f0a0abf71fe3d8afd85577751c54f7885c8d4b9cc024272ab983e05 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! --> -

Beta License: LGPL-3 OCA/edi Translate me on Weblate Try me on Runboat

+

Beta License: LGPL-3 OCA/edi Translate me on Weblate Try me on Runboat

Base module allowing configuration of custom endpoints for EDI framework.

Table of contents

@@ -419,7 +419,7 @@

Maintainers

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/edi project on GitHub.

+

This module is part of the OCA/edi project on GitHub.

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

diff --git a/edi_endpoint_oca/tests/__init__.py b/edi_endpoint/tests/__init__.py similarity index 100% rename from edi_endpoint_oca/tests/__init__.py rename to edi_endpoint/tests/__init__.py diff --git a/edi_endpoint_oca/tests/test_edi_endpoint.py b/edi_endpoint/tests/test_edi_endpoint.py similarity index 88% rename from edi_endpoint_oca/tests/test_edi_endpoint.py rename to edi_endpoint/tests/test_edi_endpoint.py index a41148448e..218f7eaab9 100644 --- a/edi_endpoint_oca/tests/test_edi_endpoint.py +++ b/edi_endpoint/tests/test_edi_endpoint.py @@ -11,7 +11,7 @@ class TestEndpoint(CommonEndpoint): @classmethod def _setup_records(cls): super()._setup_records() - cls.endpoint = cls.env.ref("edi_endpoint_oca.edi_endpoint_demo_1") + cls.endpoint = cls.env.ref("edi_endpoint.edi_endpoint_demo_1") def test_endpoint_find(self): self.assertEqual( @@ -23,13 +23,13 @@ def test_exchange_record(self): self.assertEqual(rec.edi_endpoint_id, self.endpoint) def test_route(self): - rec = self.endpoint.copy({"route": "/noprefix",}) + rec = self.endpoint.copy({"route": "/noprefix"}) self.assertEqual(rec.route, "/edi/noprefix") def test_endpoint_count(self): backend = self.endpoint.backend_id self.assertEqual(backend.endpoints_count, 1) - rec = self.endpoint.copy({"route": "/another",}) + rec = self.endpoint.copy({"route": "/another"}) self.assertEqual(backend.endpoints_count, 2) rec.active = False self.assertEqual(backend.endpoints_count, 1) diff --git a/edi_endpoint_oca/tests/test_edi_endpoint_controller.py b/edi_endpoint/tests/test_edi_endpoint_controller.py similarity index 89% rename from edi_endpoint_oca/tests/test_edi_endpoint_controller.py rename to edi_endpoint/tests/test_edi_endpoint_controller.py index 5bdfa943f0..c71a39d9ee 100644 --- a/edi_endpoint_oca/tests/test_edi_endpoint_controller.py +++ b/edi_endpoint/tests/test_edi_endpoint_controller.py @@ -5,11 +5,11 @@ import os import unittest -from odoo.tests.common import HttpSavepointCase +from odoo.tests.common import HttpCase @unittest.skipIf(os.getenv("SKIP_HTTP_CASE"), "EDIEndpointHttpCase skipped") -class EDIEndpointHttpCase(HttpSavepointCase): +class EDIEndpointHttpCase(HttpCase): @classmethod def setUpClass(cls): super().setUpClass() diff --git a/edi_endpoint_oca/views/edi_backend_views.xml b/edi_endpoint/views/edi_backend_views.xml similarity index 100% rename from edi_endpoint_oca/views/edi_backend_views.xml rename to edi_endpoint/views/edi_backend_views.xml diff --git a/edi_endpoint_oca/views/edi_endpoint_views.xml b/edi_endpoint/views/edi_endpoint_views.xml similarity index 100% rename from edi_endpoint_oca/views/edi_endpoint_views.xml rename to edi_endpoint/views/edi_endpoint_views.xml diff --git a/edi_endpoint_oca/views/edi_exchange_record_views.xml b/edi_endpoint/views/edi_exchange_record_views.xml similarity index 100% rename from edi_endpoint_oca/views/edi_exchange_record_views.xml rename to edi_endpoint/views/edi_exchange_record_views.xml diff --git a/setup/edi_endpoint/odoo/addons/edi_endpoint b/setup/edi_endpoint/odoo/addons/edi_endpoint new file mode 120000 index 0000000000..b5f4792d58 --- /dev/null +++ b/setup/edi_endpoint/odoo/addons/edi_endpoint @@ -0,0 +1 @@ +../../../../edi_endpoint \ No newline at end of file diff --git a/setup/edi_endpoint_oca/setup.py b/setup/edi_endpoint/setup.py similarity index 100% rename from setup/edi_endpoint_oca/setup.py rename to setup/edi_endpoint/setup.py diff --git a/setup/edi_endpoint_oca/odoo/addons/edi_endpoint_oca b/setup/edi_endpoint_oca/odoo/addons/edi_endpoint_oca deleted file mode 120000 index 82f69876d3..0000000000 --- a/setup/edi_endpoint_oca/odoo/addons/edi_endpoint_oca +++ /dev/null @@ -1 +0,0 @@ -../../../../edi_endpoint_oca \ No newline at end of file