From 2125a69f9909e59dc6b68f95ee8f864a8c72bc7f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Mon, 23 Apr 2012 09:04:33 +0200 Subject: [PATCH] Fix typo when getting default allocation method issue2565 --- stock.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stock.py b/stock.py index 02fa6bc5a6..29ae68e989 100644 --- a/stock.py +++ b/stock.py @@ -164,7 +164,8 @@ class ShipmentIn(Model): allocation_method = \ shipment.carrier.carrier_cost_allocation_method else: - allocation_method = carrier_obj.default_carrier_cost_method() + allocation_method = \ + carrier_obj.default_carrier_cost_allocation_method() getattr(self, 'allocate_cost_by_%s' % allocation_method)(shipment) super(ShipmentIn, self).receive(ids)