Skip to content

Commit f51f277

Browse files
Migrate carrier_account_environment to 14 (renamed from carrier_environment)
1 parent d67d0ce commit f51f277

File tree

13 files changed

+27
-24
lines changed

13 files changed

+27
-24
lines changed
File renamed without changes.
File renamed without changes.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# Copyright 2019 David BEAL @ Akretion
2+
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
3+
4+
{
5+
"name": "Carrier accounts configuration with server_environment",
6+
"version": "14.0.1.0.0",
7+
"category": "Tools",
8+
"summary": "Configure carriers with server_environment_files",
9+
"maintainers": ["florian-dacosta"],
10+
"author": "Akretion, Camptocamp, Odoo Community Association (OCA)",
11+
"license": "AGPL-3",
12+
"website": "https://github.com/OCA/delivery-carrier",
13+
"depends": [
14+
"server_environment",
15+
"base_delivery_carrier_label",
16+
],
17+
}

carrier_environment/models/carrier_account.py carrier_account_environment/models/carrier_account.py

+8-6
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,13 @@ class CarrierAccount(models.Model):
1111
@property
1212
def _server_env_fields(self):
1313
carrier_fields = super()._server_env_fields
14-
carrier_fields.update({
15-
"account": {},
16-
"password": {},
17-
"file_format": {},
18-
})
14+
carrier_fields.update(
15+
{
16+
"account": {},
17+
"password": {},
18+
"file_format": {},
19+
}
20+
)
1921
return carrier_fields
2022

2123
@api.model
@@ -24,4 +26,4 @@ def _server_env_global_section_name(self):
2426
2527
Can be customized in your model
2628
"""
27-
return 'carrier_account'
29+
return "carrier_account"
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
This module allows to configure carrier informations
2-
using the `server_environment` mechanism: you can then have different
1+
This module allows to configure carrier informations
2+
using the `server_environment` mechanism: you can then have different
33
servers for the production and the test environment.

carrier_environment/__manifest__.py

-16
This file was deleted.

0 commit comments

Comments
 (0)