Skip to content

Commit 59f72cf

Browse files
[MIG] carrier_account_environment: Migration to 18.0
1 parent 265be62 commit 59f72cf

File tree

6 files changed

+37
-1
lines changed

6 files changed

+37
-1
lines changed

carrier_account_environment/README.rst

+3
Original file line numberDiff line numberDiff line change
@@ -112,6 +112,9 @@ Contributors
112112

113113
- David Béal <david.beal@akretion.com>
114114
- Guewen Baconnier <guewen.baconnier@camptocamp.com>
115+
- `Heliconia Solutions Pvt. Ltd. <https://www.heliconia.io>`__
116+
117+
- Bhavesh Heliconia
115118

116119
Maintainers
117120
-----------

carrier_account_environment/__manifest__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
{
44
"name": "Carrier accounts configuration with server_environment",
5-
"version": "16.0.1.0.0",
5+
"version": "18.0.1.0.0",
66
"category": "Tools",
77
"summary": "Configure carriers with server_environment_files",
88
"maintainers": ["florian-dacosta"],
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,4 @@
11
- David Béal \<<david.beal@akretion.com>\>
22
- Guewen Baconnier \<<guewen.baconnier@camptocamp.com>\>
3+
- [Heliconia Solutions Pvt. Ltd.](https://www.heliconia.io)
4+
- Bhavesh Heliconia

carrier_account_environment/static/description/index.html

+4
Original file line numberDiff line numberDiff line change
@@ -453,6 +453,10 @@ <h2><a class="toc-backref" href="#toc-entry-6">Contributors</a></h2>
453453
<ul class="simple">
454454
<li>David Béal &lt;<a class="reference external" href="mailto:david.beal&#64;akretion.com">david.beal&#64;akretion.com</a>&gt;</li>
455455
<li>Guewen Baconnier &lt;<a class="reference external" href="mailto:guewen.baconnier&#64;camptocamp.com">guewen.baconnier&#64;camptocamp.com</a>&gt;</li>
456+
<li><a class="reference external" href="https://www.heliconia.io">Heliconia Solutions Pvt. Ltd.</a><ul>
457+
<li>Bhavesh Heliconia</li>
458+
</ul>
459+
</li>
456460
</ul>
457461
</div>
458462
<div class="section" id="maintainers">
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import test_carrier_account_environment
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Copyright 2019 David BEAL @ Akretion
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
from odoo.addons.base.tests.common import BaseCommon
5+
6+
7+
class TestCarrierAccount(BaseCommon):
8+
@classmethod
9+
def setUpClass(cls):
10+
super().setUpClass()
11+
cls.carrier_account = cls.env["carrier.account"].create(
12+
{"name": "Test Carrier"}
13+
)
14+
15+
def test_server_env_fields(self):
16+
"""Test that _server_env_fields includes expected fields."""
17+
server_env_fields = self.carrier_account._server_env_fields
18+
self.assertIn("account", server_env_fields)
19+
self.assertIn("password", server_env_fields)
20+
21+
def test_server_env_global_section_name(self):
22+
"""Test that _server_env_global_section_name
23+
returns the correct section name."""
24+
self.assertEqual(
25+
self.carrier_account._server_env_global_section_name(), "carrier_account"
26+
)

0 commit comments

Comments
 (0)