You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -32,16 +32,17 @@ Integration of multiple carriers with Roulier library
32
32
33
33
Base module for integration with Roulier.
34
34
35
-
`Roulier <https://pypi.python.org/pypi/roulier>`_ is a python library which implements carriers API.
36
-
This modules contains the core functions for this implementation.
35
+
`Roulier <https://pypi.python.org/pypi/roulier>`__ is a python library
36
+
which implements carriers API. This modules contains the core functions
37
+
for this implementation.
37
38
38
39
You should install one of the specific modules :
39
40
40
-
- delivery_roulier_laposte
41
-
- delivery_roulier_dpd
42
-
- delivery_roulier_geodis
43
-
- delivery_carrier_label_gls
44
-
- more to come
41
+
- delivery_roulier_laposte
42
+
- delivery_roulier_dpd
43
+
- delivery_roulier_geodis
44
+
- delivery_carrier_label_gls
45
+
- more to come
45
46
46
47
**Table of contents**
47
48
@@ -51,79 +52,81 @@ You should install one of the specific modules :
51
52
Configuration
52
53
=============
53
54
54
-
This module needs package in order to work.
55
-
To generate the carrier labels on the picking, each products need to be assigned to a destination package. In case you don't want to bother with the use of package because the whole content of the picking usually fit in a unique package, you may consider installing the module delivery_automatic_package from the same repository (delivery-carrier). The package will be assigned automatically when asking the carrier labels.
55
+
This module needs package in order to work. To generate the carrier
56
+
labels on the picking, each products need to be assigned to a
57
+
destination package. In case you don't want to bother with the use of
58
+
package because the whole content of the picking usually fit in a unique
59
+
package, you may consider installing the module
60
+
delivery_automatic_package from the same repository (delivery-carrier).
61
+
The package will be assigned automatically when asking the carrier
62
+
labels.
56
63
57
64
Usage
58
65
=====
59
66
60
67
Here is some methods you can use for your carrier implementation
61
68
allowing to have a consistent code accross different carrier modules:
62
69
63
-
.. code-block:: python
70
+
.. code:: python
64
71
65
-
def_mycarrier_get_sender(...):
72
+
def_mycarrier_get_sender(...):
66
73
67
74
68
-
def_mycarrier_get_receiver(...):
75
+
def_mycarrier_get_receiver(...):
69
76
70
77
71
-
def_mycarrier_get_shipping_date(...):
78
+
def_mycarrier_get_shipping_date(...):
72
79
73
80
74
-
def_mycarrier_get_account(...):
81
+
def_mycarrier_get_account(...):
75
82
76
83
77
-
def_mycarrier_get_auth(...):
84
+
def_mycarrier_get_auth(...):
78
85
79
86
80
-
def_mycarrier_get_service(...):
87
+
def_mycarrier_get_service(...):
81
88
82
89
83
-
def_mycarrier_convert_address(...):
90
+
def_mycarrier_convert_address(...):
84
91
92
+
Instead of calling super() you can use:
85
93
86
-
|
94
+
.. code:: python
87
95
96
+
def_mycarrier_get_service(...):
88
97
89
-
Instead of calling `super()` you can use:
98
+
result = _roulier_get_service(...)
90
99
91
-
.. code-block:: python
100
+
result["specific_key"] ="blabla"
92
101
93
-
def_mycarrier_get_service(...):
94
-
95
-
result = _roulier_get_service(...)
96
-
97
-
result["specific_key"] ="blabla"
98
-
99
-
return result
102
+
return result
100
103
101
104
Bug Tracker
102
105
===========
103
106
104
107
Bugs are tracked on `GitHub Issues <https://github.com/OCA/delivery-carrier/issues>`_.
105
108
In case of trouble, please check there if your issue has already been reported.
106
109
If you spotted it first, help us to smash it by providing a detailed and welcomed
0 commit comments