changeset 1d532fc00818 in modules/stock_package_shipping_ups:default
details:
https://hg.tryton.org/modules/stock_package_shipping_ups?cmd=changeset;node=1d532fc00818
description:
Allow updating dimensions on package
issue9846
review304891002
diffstat:
stock.py | 12 ++++++------
1 files changed, 6 insertions(+), 6 deletions(-)
diffs (22 lines):
diff -r 9984ee063c63 -r 1d532fc00818 stock.py
--- a/stock.py Sat Feb 27 18:16:29 2021 +0100
+++ b/stock.py Mon Mar 01 09:08:18 2021 +0100
@@ -284,12 +284,12 @@
'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': {