[tryton-debian-vcs] tryton-modules-stock-package-shipping-ups branch upstream-4.4 updated. upstream/4.4.1-1-g6674470
Mathias Behrle
tryton-debian-vcs at alioth.debian.org
Wed Dec 13 10:42:17 UTC 2017
The following commit has been merged in the upstream-4.4 branch:
https://alioth.debian.org/plugins/scmgit/cgi-bin/gitweb.cgi/?p=tryton/tryton-modules-stock-package-shipping-ups.git;a=commitdiff;h=upstream/4.4.1-1-g6674470
commit 66744705969c9c7a4d00d494e4f01812c2f5942d
Author: Mathias Behrle <mathiasb at m9s.biz>
Date: Tue Dec 12 19:07:15 2017 +0100
Adding upstream version 4.4.2.
Signed-off-by: Mathias Behrle <mathiasb at m9s.biz>
diff --git a/CHANGELOG b/CHANGELOG
index 63ba49a..0211469 100644
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -1,3 +1,6 @@
+Version 4.4.2 - 2017-12-04
+* Bug fixes (see mercurial logs for details)
+
Version 4.4.1 - 2017-07-01
* Bug fixes (see mercurial logs for details)
diff --git a/PKG-INFO b/PKG-INFO
index f2c62c4..40cb5b1 100644
--- a/PKG-INFO
+++ b/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond_stock_package_shipping_ups
-Version: 4.4.1
+Version: 4.4.2
Summary: UPS connector for the Tryton application plateform
Home-page: http://www.tryton.org/
Author: Tryton
diff --git a/stock.py b/stock.py
index e35ce4b..fc49106 100644
--- a/stock.py
+++ b/stock.py
@@ -237,7 +237,7 @@ class CreateShippingUPS(Wizard):
return {
'RequestOption': 'validate',
'TransactionReference': {
- 'CustomerContext': shipment.number,
+ 'CustomerContext': (shipment.number or '')[:512],
},
}
@@ -246,9 +246,10 @@ class CreateShippingUPS(Wizard):
'Name': party.name[:35],
'AttentionName': party.name[:35],
'Address': {
- 'AddressLine': (address.street or '').splitlines(),
- 'City': address.city,
- 'PostalCode': address.zip,
+ 'AddressLine': [l[:35]
+ for l in (address.street or '').splitlines()[:3]],
+ 'City': address.city[:30],
+ 'PostalCode': (address.zip or '')[:9],
'CountryCode': address.country.code if address.country else '',
},
}
@@ -325,7 +326,7 @@ class CreateShippingUPS(Wizard):
'ShipmentRequest': {
'Request': self.get_request_container(shipment),
'Shipment': {
- 'Description': shipment.shipping_description,
+ 'Description': (shipment.shipping_description or '')[:50],
'Shipper': shipper,
'ShipTo': self.get_shipping_party(shipment.customer,
shipment.delivery_address),
diff --git a/tryton.cfg b/tryton.cfg
index 3e4820e..a5a7d11 100644
--- a/tryton.cfg
+++ b/tryton.cfg
@@ -1,5 +1,5 @@
[tryton]
-version=4.4.1
+version=4.4.2
depends:
ir
res
diff --git a/trytond_stock_package_shipping_ups.egg-info/PKG-INFO b/trytond_stock_package_shipping_ups.egg-info/PKG-INFO
index 73279f4..9efb6fc 100644
--- a/trytond_stock_package_shipping_ups.egg-info/PKG-INFO
+++ b/trytond_stock_package_shipping_ups.egg-info/PKG-INFO
@@ -1,6 +1,6 @@
Metadata-Version: 1.1
Name: trytond-stock-package-shipping-ups
-Version: 4.4.1
+Version: 4.4.2
Summary: UPS connector for the Tryton application plateform
Home-page: http://www.tryton.org/
Author: Tryton
--
tryton-modules-stock-package-shipping-ups
More information about the tryton-debian-vcs
mailing list