Fix typo when getting default allocation method

issue2565
This commit is contained in:
Cédric Krier committed 2012-04-23 09:04:33 +02:00
1 parent 4963e2a02e
commit 2125a69f99
1 file changed
+2 -1
+2 -1
View File
@@ -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)