We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3c8d883 + 9eacc39 commit 1d335ceCopy full SHA for 1d335ce
delivery_roulier/models/delivery_carrier.py
@@ -21,7 +21,7 @@ def _is_roulier(self):
21
return "get_label" in available_carrier_actions.get(self.delivery_type, [])
22
23
def cancel_shipment(self, pickings):
24
- if self._is_roulier:
+ if self._is_roulier():
25
pickings._cancel_shipment()
26
else:
27
return super().cancel_shipment(pickings)
@@ -44,7 +44,7 @@ def rate_shipment(self, order):
44
res = super().rate_shipment(order)
45
# for roulier carrier, usually getting the price by carrier webservice
46
# is usually not available for now. Avoid failure in that case.
47
- if not res and self.is_roulier():
+ if not res and self._is_roulier():
48
res = {
49
"success": True,
50
"price": 0.0,
0 commit comments