From 375adf01c0f33beae515a9f2bf22b04bb777b88a Mon Sep 17 00:00:00 2001 From: Maxime Richez Date: Mon, 1 Mar 2021 09:08:18 +0100 Subject: [PATCH] Allow updating dimensions on package issue9846 review304891002 --- stock.py | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/stock.py b/stock.py index d9a2a2f79c..b95ab140a7 100644 --- a/stock.py +++ b/stock.py @@ -284,12 +284,12 @@ class CreateShippingUPS(Wizard): 'UnitOfMeasurement': { 'Code': 'CM' if use_metric else 'IN', }, - 'Length': '%i' % round(UoM.compute_qty(package.type.length_uom, - package.type.length, cm if use_metric else inch)), - 'Width': '%i' % round(UoM.compute_qty(package.type.width_uom, - package.type.width, cm if use_metric else inch)), - 'Height': '%i' % round(UoM.compute_qty(package.type.height_uom, - package.type.height, cm if use_metric else inch)), + 'Length': '%i' % round(UoM.compute_qty(package.length_uom, + package.length, cm if use_metric else inch)), + 'Width': '%i' % round(UoM.compute_qty(package.width_uom, + package.width, cm if use_metric else inch)), + 'Height': '%i' % round(UoM.compute_qty(package.height_uom, + package.height, cm if use_metric else inch)), }, 'PackageWeight': { 'UnitOfMeasurement': {