From 98eeb1727ae5cca9c95d2e251df145f57f6b71e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9dric=20Krier?= Date: Sun, 20 Aug 2023 01:18:11 +0200 Subject: [PATCH] Remove unused _location_amount from customer shipment The method was introduced by a3aa9d985589 for the assign_try method but it is no more used. --- modules/stock/shipment.py | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/modules/stock/shipment.py b/modules/stock/shipment.py index e7fb0207b4..633be2590a 100644 --- a/modules/stock/shipment.py +++ b/modules/stock/shipment.py @@ -1685,19 +1685,6 @@ class ShipmentOut(ShipmentAssignMixin, Workflow, ModelSQL, ModelView): Move.delete([m for s in shipments for m in s.moves]) super(ShipmentOut, cls).delete(shipments) - @staticmethod - def _location_amount(target_uom, qty_uom, uom_index): - """ - Take a raw list of quantities and uom and convert it to - the target uom. - """ - Uom = Pool().get('product.uom') - res = 0 - for uom, qty in qty_uom: - res += Uom.compute_qty(uom_index[uom], qty, - uom_index[target_uom]) - return res - @classmethod @ModelView.button_action('stock.wizard_shipment_out_assign') def assign_wizard(cls, shipments):