Skip to content

Commit

Permalink
[REF]edi_endpoint_oca: rename module to edi_endpoint
Browse files Browse the repository at this point in the history
In line with the `edi_webservice` from v13: https://github.com/OCA/edi/tree/13.0/edi_webservice
  • Loading branch information
GuillemCForgeFlow committed Nov 7, 2024
1 parent 37828cc commit dd87d89
Show file tree
Hide file tree
Showing 28 changed files with 14 additions and 14 deletions.
6 changes: 3 additions & 3 deletions edi_endpoint_oca/README.rst → edi_endpoint/README.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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 <https://github.com/OCA/edi/tree/14.0/edi_endpoint_oca>`_ project on GitHub.
This module is part of the `OCA/edi <https://github.com/OCA/edi/tree/14.0/edi_endpoint>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
<record id="server_action_registry_sync" model="ir.actions.server">
<field name="name">Sync registry</field>
<field name="type">ir.actions.server</field>
<field name="model_id" ref="edi_endpoint_oca.model_edi_endpoint" />
<field name="binding_model_id" ref="edi_endpoint_oca.model_edi_endpoint" />
<field name="model_id" ref="edi_endpoint.model_edi_endpoint" />
<field name="binding_model_id" ref="edi_endpoint.model_edi_endpoint" />
<field name="state">code</field>
<field name="code">
records.filtered(lambda x: not x.registry_sync).write({"registry_sync": True})
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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"] = [
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
Original file line number Diff line number Diff line change
Expand Up @@ -369,7 +369,7 @@ <h1 class="title">EDI endpoint</h1>
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! source digest: sha256:e8d566490f0a0abf71fe3d8afd85577751c54f7885c8d4b9cc024272ab983e05
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/edi/tree/14.0/edi_endpoint_oca"><img alt="OCA/edi" src="https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-edi_endpoint_oca"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/edi&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p><a class="reference external image-reference" href="https://odoo-community.org/page/development-status"><img alt="Beta" src="https://img.shields.io/badge/maturity-Beta-yellow.png" /></a> <a class="reference external image-reference" href="http://www.gnu.org/licenses/lgpl-3.0-standalone.html"><img alt="License: LGPL-3" src="https://img.shields.io/badge/licence-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/edi/tree/14.0/edi_endpoint"><img alt="OCA/edi" src="https://img.shields.io/badge/github-OCA%2Fedi-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/edi-14-0/edi-14-0-edi_endpoint"><img alt="Translate me on Weblate" src="https://img.shields.io/badge/weblate-Translate%20me-F47D42.png" /></a> <a class="reference external image-reference" href="https://runboat.odoo-community.org/builds?repo=OCA/edi&amp;target_branch=14.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
<p>Base module allowing configuration of custom endpoints for EDI framework.</p>
<p><strong>Table of contents</strong></p>
<div class="contents local topic" id="contents">
Expand Down Expand Up @@ -419,7 +419,7 @@ <h2><a class="toc-backref" href="#toc-entry-6">Maintainers</a></h2>
<p>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.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi/tree/14.0/edi_endpoint_oca">OCA/edi</a> project on GitHub.</p>
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi/tree/14.0/edi_endpoint">OCA/edi</a> project on GitHub.</p>
<p>You are welcome to contribute. To learn how please visit <a class="reference external" href="https://odoo-community.org/page/Contribute">https://odoo-community.org/page/Contribute</a>.</p>
</div>
</div>
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand All @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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()
Expand Down
File renamed without changes.
File renamed without changes.
1 change: 1 addition & 0 deletions setup/edi_endpoint/odoo/addons/edi_endpoint
File renamed without changes.
1 change: 0 additions & 1 deletion setup/edi_endpoint_oca/odoo/addons/edi_endpoint_oca

This file was deleted.

0 comments on commit dd87d89

Please sign in to comment.