Skip to content

Commit 0f1b71f

Browse files
committed
[MIG] edi_storage_oca: Migration to 19.0
1 parent a96a886 commit 0f1b71f

7 files changed

Lines changed: 47 additions & 75 deletions

File tree

edi_storage_oca/README.rst

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@ EDI Storage backend support
2121
:target: http://www.gnu.org/licenses/lgpl-3.0-standalone.html
2222
:alt: License: LGPL-3
2323
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fedi--framework-lightgray.png?logo=github
24-
:target: https://github.com/OCA/edi-framework/tree/18.0/edi_storage_oca
24+
:target: https://github.com/OCA/edi-framework/tree/19.0/edi_storage_oca
2525
:alt: OCA/edi-framework
2626
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
27-
:target: https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_storage_oca
27+
:target: https://translation.odoo-community.org/projects/edi-framework-19-0/edi-framework-19-0-edi_storage_oca
2828
:alt: Translate me on Weblate
2929
.. |badge5| image:: https://img.shields.io/badge/runboat-Try%20me-875A7B.png
30-
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi-framework&target_branch=18.0
30+
:target: https://runboat.odoo-community.org/builds?repo=OCA/edi-framework&target_branch=19.0
3131
:alt: Try me on Runboat
3232

3333
|badge1| |badge2| |badge3| |badge4| |badge5|
@@ -79,7 +79,7 @@ Bug Tracker
7979
Bugs are tracked on `GitHub Issues <https://github.com/OCA/edi-framework/issues>`_.
8080
In case of trouble, please check there if your issue has already been reported.
8181
If you spotted it first, help us to smash it by providing a detailed and welcomed
82-
`feedback <https://github.com/OCA/edi-framework/issues/new?body=module:%20edi_storage_oca%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
82+
`feedback <https://github.com/OCA/edi-framework/issues/new?body=module:%20edi_storage_oca%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
8383

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

@@ -121,6 +121,6 @@ OCA, or the Odoo Community Association, is a nonprofit organization whose
121121
mission is to support the collaborative development of Odoo features and
122122
promote its widespread use.
123123

124-
This module is part of the `OCA/edi-framework <https://github.com/OCA/edi-framework/tree/18.0/edi_storage_oca>`_ project on GitHub.
124+
This module is part of the `OCA/edi-framework <https://github.com/OCA/edi-framework/tree/19.0/edi_storage_oca>`_ project on GitHub.
125125

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

edi_storage_oca/__manifest__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"summary": """
88
Base module to allow exchanging files via storage backend (eg: SFTP).
99
""",
10-
"version": "18.0.1.0.2",
10+
"version": "19.0.1.0.0",
1111
"development_status": "Beta",
1212
"license": "LGPL-3",
1313
"website": "https://github.com/OCA/edi-framework",
@@ -18,5 +18,4 @@
1818
"security/ir_model_access.xml",
1919
"views/edi_backend_views.xml",
2020
],
21-
"demo": ["demo/edi_backend_demo.xml"],
2221
}

edi_storage_oca/demo/edi_backend_demo.xml

Lines changed: 0 additions & 14 deletions
This file was deleted.

edi_storage_oca/migrations/18.0.1.0.0/post-migration.py

Lines changed: 0 additions & 48 deletions
This file was deleted.

edi_storage_oca/static/description/index.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -374,7 +374,7 @@ <h1>EDI Storage backend support</h1>
374374
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
375375
!! source digest: sha256:ae52c0238c8bab278e4e2d6a48d86d4222672b893df1f171be046f3b7a3c58ae
376376
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! -->
377-
<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/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/edi-framework/tree/18.0/edi_storage_oca"><img alt="OCA/edi-framework" src="https://img.shields.io/badge/github-OCA%2Fedi--framework-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/edi-framework-18-0/edi-framework-18-0-edi_storage_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-framework&amp;target_branch=18.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
377+
<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/license-LGPL--3-blue.png" /></a> <a class="reference external image-reference" href="https://github.com/OCA/edi-framework/tree/19.0/edi_storage_oca"><img alt="OCA/edi-framework" src="https://img.shields.io/badge/github-OCA%2Fedi--framework-lightgray.png?logo=github" /></a> <a class="reference external image-reference" href="https://translation.odoo-community.org/projects/edi-framework-19-0/edi-framework-19-0-edi_storage_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-framework&amp;target_branch=19.0"><img alt="Try me on Runboat" src="https://img.shields.io/badge/runboat-Try%20me-875A7B.png" /></a></p>
378378
<p>Allow exchange files using storage backends from OCA/storage.</p>
379379
<p>This module adds a storage backend relation on the EDI backend. There
380380
you can configure the backend to be used (most often and SFTP) and the
@@ -426,7 +426,7 @@ <h2><a class="toc-backref" href="#toc-entry-3">Bug Tracker</a></h2>
426426
<p>Bugs are tracked on <a class="reference external" href="https://github.com/OCA/edi-framework/issues">GitHub Issues</a>.
427427
In case of trouble, please check there if your issue has already been reported.
428428
If you spotted it first, help us to smash it by providing a detailed and welcomed
429-
<a class="reference external" href="https://github.com/OCA/edi-framework/issues/new?body=module:%20edi_storage_oca%0Aversion:%2018.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
429+
<a class="reference external" href="https://github.com/OCA/edi-framework/issues/new?body=module:%20edi_storage_oca%0Aversion:%2019.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**">feedback</a>.</p>
430430
<p>Do not contact contributors directly about support or help with technical issues.</p>
431431
</div>
432432
<div class="section" id="credits">
@@ -464,7 +464,7 @@ <h3><a class="toc-backref" href="#toc-entry-8">Maintainers</a></h3>
464464
<p>OCA, or the Odoo Community Association, is a nonprofit organization whose
465465
mission is to support the collaborative development of Odoo features and
466466
promote its widespread use.</p>
467-
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi-framework/tree/18.0/edi_storage_oca">OCA/edi-framework</a> project on GitHub.</p>
467+
<p>This module is part of the <a class="reference external" href="https://github.com/OCA/edi-framework/tree/19.0/edi_storage_oca">OCA/edi-framework</a> project on GitHub.</p>
468468
<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>
469469
</div>
470470
</div>

edi_storage_oca/tests/common.py

Lines changed: 26 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,32 @@
1212
class TestEDIStorageBase(EDIBackendCommonTestCase):
1313
@classmethod
1414
def _get_backend(cls):
15-
return cls.env.ref("edi_storage_oca.demo_edi_backend_storage")
15+
backend_type = cls.env["edi.backend.type"].create(
16+
{
17+
"name": "Demo EDI backend type",
18+
"code": "demo_backend",
19+
}
20+
)
21+
storage = cls.env["fs.storage"].create(
22+
{
23+
"name": "Odoo Filesystem Backend",
24+
"protocol": "odoofs",
25+
"code": "odoofs",
26+
}
27+
)
28+
return cls.env["edi.backend"].create(
29+
{
30+
"name": "Storage Demo EDI backend",
31+
"backend_type_id": backend_type.id,
32+
"storage_id": storage.id,
33+
"input_dir_pending": "demo_in/pending",
34+
"input_dir_done": "demo_in/done",
35+
"input_dir_error": "demo_in/error",
36+
"output_dir_pending": "demo_out/pending",
37+
"output_dir_done": "demo_out/done",
38+
"output_dir_error": "demo_out/error",
39+
}
40+
)
1641

1742
@classmethod
1843
def _setup_records(cls):

edi_storage_oca/tests/test_edi_backend_storage.py

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -141,8 +141,18 @@ def test_cron_full_flow(self):
141141
"""Already sent, update the state via cron."""
142142
self.record.edi_exchange_state = "output_sent"
143143
rec1 = self.record
144-
partner2 = self.env.ref("base.res_partner_2")
145-
partner3 = self.env.ref("base.res_partner_3")
144+
partner2, partner3 = self.env["res.partner"].create(
145+
[
146+
{
147+
"name": "Acme Corporation",
148+
"is_company": True,
149+
},
150+
{
151+
"name": "Gemini Furniture",
152+
"is_company": True,
153+
},
154+
]
155+
)
146156
rec2 = self.record.copy(
147157
{
148158
"model": partner2._name,

0 commit comments

Comments
 (0)