Skip to content

Commit 3a83160

Browse files
Tisho99florian-dacosta
authored andcommittedMar 10, 2025·
[17.0][FIX] delivery_roulier: calls to is_roulier()
1 parent b7f107e commit 3a83160

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed
 

‎delivery_roulier/models/delivery_carrier.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def _is_roulier(self):
2727
return "get_label" in available_carrier_actions.get(self.delivery_type, [])
2828

2929
def cancel_shipment(self, pickings):
30-
if self._is_roulier:
30+
if self._is_roulier():
3131
pickings._cancel_shipment()
3232
else:
3333
return super().cancel_shipment(pickings)
@@ -50,7 +50,7 @@ def rate_shipment(self, order):
5050
res = super().rate_shipment(order)
5151
# for roulier carrier, usually getting the price by carrier webservice
5252
# is usually not available for now. Avoid failure in that case.
53-
if not res and self.is_roulier():
53+
if not res and self._is_roulier():
5454
res = {
5555
"success": True,
5656
"price": 0.0,

0 commit comments

Comments
 (0)
Please sign in to comment.