Skip to content

Commit 1d335ce

Browse files
committed
Merge PR #992 into 17.0
Signed-off-by florian-dacosta
2 parents 3c8d883 + 9eacc39 commit 1d335ce

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
@@ -21,7 +21,7 @@ def _is_roulier(self):
2121
return "get_label" in available_carrier_actions.get(self.delivery_type, [])
2222

2323
def cancel_shipment(self, pickings):
24-
if self._is_roulier:
24+
if self._is_roulier():
2525
pickings._cancel_shipment()
2626
else:
2727
return super().cancel_shipment(pickings)
@@ -44,7 +44,7 @@ def rate_shipment(self, order):
4444
res = super().rate_shipment(order)
4545
# for roulier carrier, usually getting the price by carrier webservice
4646
# is usually not available for now. Avoid failure in that case.
47-
if not res and self.is_roulier():
47+
if not res and self._is_roulier():
4848
res = {
4949
"success": True,
5050
"price": 0.0,

0 commit comments

Comments
 (0)