Skip to content

Commit 8439526

Browse files
committed
Merge PR #626 into 16.0
Signed-off-by bguillot
2 parents 9ba493a + 009fac1 commit 8439526

File tree

14 files changed

+676
-0
lines changed

14 files changed

+676
-0
lines changed
+107
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,107 @@
1+
===========================
2+
Server Environment Delivery
3+
===========================
4+
5+
.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
6+
!! This file is generated by oca-gen-addon-readme !!
7+
!! changes will be overwritten. !!
8+
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
9+
10+
.. |badge1| image:: https://img.shields.io/badge/maturity-Alpha-red.png
11+
:target: https://odoo-community.org/page/development-status
12+
:alt: Alpha
13+
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
14+
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
15+
:alt: License: AGPL-3
16+
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fdelivery--carrier-lightgray.png?logo=github
17+
:target: https://github.com/OCA/delivery-carrier/tree/14.0/server_environment_delivery
18+
:alt: OCA/delivery-carrier
19+
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
20+
:target: https://translation.odoo-community.org/projects/delivery-carrier-14-0/delivery-carrier-14-0-server_environment_delivery
21+
:alt: Translate me on Weblate
22+
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
23+
:target: https://runbot.odoo-community.org/runbot/99/14.0
24+
:alt: Try me on Runbot
25+
26+
|badge1| |badge2| |badge3| |badge4| |badge5|
27+
28+
This module allows to configure shipping methods according to server environment.
29+
30+
.. IMPORTANT::
31+
This is an alpha version, the data model and design can change at any time without warning.
32+
Only for development or testing purpose, do not use in production.
33+
`More details on development status <https://odoo-community.org/page/development-status>`_
34+
35+
**Table of contents**
36+
37+
.. contents::
38+
:local:
39+
40+
Configuration
41+
=============
42+
43+
At the moment, the module only allows to define the field prod_environment by
44+
defining a `[delivery_carrier]` with `prod_environment` key as follows:
45+
46+
Restrict usage of prod environment::
47+
48+
[delivery_carrier]
49+
prod_environment=False
50+
51+
52+
Force usage of prod environment::
53+
54+
[delivery_carrier]
55+
prod_environment=False
56+
57+
58+
If the key is not set, the user will still be able to switch the value.
59+
60+
Bug Tracker
61+
===========
62+
63+
Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/issues>`_.
64+
In case of trouble, please check there if your issue has already been reported.
65+
If you spotted it first, help us smashing it by providing a detailed and welcomed
66+
`feedback <https://github.com/OCA/delivery-carrier/issues/new?body=module:%20server_environment_delivery%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.
67+
68+
Do not contact contributors directly about support or help with technical issues.
69+
70+
Credits
71+
=======
72+
73+
Authors
74+
~~~~~~~
75+
76+
* Camptocamp
77+
78+
Contributors
79+
~~~~~~~~~~~~
80+
81+
* Akim Juillerat <akim.juillerat@camptocamp.com>
82+
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
83+
* Simone Orsi <simahawk@gmail.com>
84+
* `Trobz <https://trobz.com>`_:
85+
* Son Ho <sonhd@trobz.com>
86+
87+
Other credits
88+
~~~~~~~~~~~~~
89+
90+
The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp
91+
92+
Maintainers
93+
~~~~~~~~~~~
94+
95+
This module is maintained by the OCA.
96+
97+
.. image:: https://odoo-community.org/logo.png
98+
:alt: Odoo Community Association
99+
:target: https://odoo-community.org
100+
101+
OCA, or the Odoo Community Association, is a nonprofit organization whose
102+
mission is to support the collaborative development of Odoo features and
103+
promote its widespread use.
104+
105+
This module is part of the `OCA/delivery-carrier <https://github.com/OCA/delivery-carrier/tree/14.0/server_environment_delivery>`_ project on GitHub.
106+
107+
You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import models
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
# Copyright 2020 Camptocamp SA
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
3+
{
4+
"name": "Server Environment Delivery",
5+
"summary": "Configure prod environment for delivery carriers",
6+
"version": "16.0.1.0.0",
7+
"development_status": "Alpha",
8+
"category": "Operations/Inventory/Delivery",
9+
"website": "https://github.com/OCA/delivery-carrier",
10+
"author": "Camptocamp, Odoo Community Association (OCA)",
11+
"license": "AGPL-3",
12+
"depends": ["delivery", "server_environment"],
13+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
# Translation of Odoo Server.
2+
# This file contains the translation of the following modules:
3+
# * server_environment_delivery
4+
#
5+
msgid ""
6+
msgstr ""
7+
"Project-Id-Version: Odoo Server 14.0\n"
8+
"Report-Msgid-Bugs-To: \n"
9+
"Last-Translator: \n"
10+
"Language-Team: \n"
11+
"MIME-Version: 1.0\n"
12+
"Content-Type: text/plain; charset=UTF-8\n"
13+
"Content-Transfer-Encoding: \n"
14+
"Plural-Forms: \n"
15+
16+
#. module: server_environment_delivery
17+
#: model:ir.model.fields,field_description:server_environment_delivery.field_delivery_carrier__display_name
18+
msgid "Display Name"
19+
msgstr ""
20+
21+
#. module: server_environment_delivery
22+
#: model:ir.model.fields,field_description:server_environment_delivery.field_delivery_carrier__id
23+
msgid "ID"
24+
msgstr ""
25+
26+
#. module: server_environment_delivery
27+
#: model:ir.model.fields,field_description:server_environment_delivery.field_delivery_carrier____last_update
28+
msgid "Last Modified on"
29+
msgstr ""
30+
31+
#. module: server_environment_delivery
32+
#: model:ir.model.fields,field_description:server_environment_delivery.field_delivery_carrier__server_env_defaults
33+
msgid "Server Env Defaults"
34+
msgstr ""
35+
36+
#. module: server_environment_delivery
37+
#: model:ir.model,name:server_environment_delivery.model_delivery_carrier
38+
msgid "Shipping Methods"
39+
msgstr ""
40+
41+
#. module: server_environment_delivery
42+
#: model:ir.model.fields,field_description:server_environment_delivery.field_delivery_carrier__tech_name
43+
msgid "Tech Name"
44+
msgstr ""
45+
46+
#. module: server_environment_delivery
47+
#: model:ir.model.fields,help:server_environment_delivery.field_delivery_carrier__tech_name
48+
msgid "Unique name for technical purposes. Eg: server env keys."
49+
msgstr ""
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
from . import delivery_carrier
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
# Copyright 2020 Camptocamp SA
2+
# License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl)
3+
4+
from odoo import fields, models
5+
6+
7+
class DeliveryCarrier(models.Model):
8+
_name = "delivery.carrier"
9+
_inherit = ["delivery.carrier", "server.env.techname.mixin", "server.env.mixin"]
10+
11+
tech_name = fields.Char(required=False)
12+
13+
@property
14+
def _server_env_fields(self):
15+
base_fields = super()._server_env_fields
16+
delivery_fields = {"prod_environment": {}}
17+
delivery_fields.update(base_fields)
18+
return delivery_fields
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
At the moment, the module only allows to define the field prod_environment by
2+
defining a `[delivery_carrier]` with `prod_environment` key as follows:
3+
4+
Restrict usage of prod environment::
5+
6+
[delivery_carrier]
7+
prod_environment=False
8+
9+
10+
Force usage of prod environment::
11+
12+
[delivery_carrier]
13+
prod_environment=False
14+
15+
16+
If the key is not set, the user will still be able to switch the value.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
* Akim Juillerat <akim.juillerat@camptocamp.com>
2+
* Guewen Baconnier <guewen.baconnier@camptocamp.com>
3+
* Simone Orsi <simahawk@gmail.com>
4+
* `Trobz <https://trobz.com>`_:
5+
* Son Ho <sonhd@trobz.com>
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The migration of this module from 13.0 to 14.0 was financially supported by Camptocamp
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
This module allows to configure shipping methods according to server environment.
Loading

0 commit comments

Comments
 (0)