We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b7f107e commit 3a83160Copy full SHA for 3a83160
delivery_roulier/models/delivery_carrier.py
@@ -27,7 +27,7 @@ def _is_roulier(self):
27
return "get_label" in available_carrier_actions.get(self.delivery_type, [])
28
29
def cancel_shipment(self, pickings):
30
- if self._is_roulier:
+ if self._is_roulier():
31
pickings._cancel_shipment()
32
else:
33
return super().cancel_shipment(pickings)
@@ -50,7 +50,7 @@ def rate_shipment(self, order):
50
res = super().rate_shipment(order)
51
# for roulier carrier, usually getting the price by carrier webservice
52
# is usually not available for now. Avoid failure in that case.
53
- if not res and self.is_roulier():
+ if not res and self._is_roulier():
54
res = {
55
"success": True,
56
"price": 0.0,
0 commit comments