FIX delivery_stamps Requirement and API change/bug.

This commit is contained in:
Jared Kipe
2019-06-08 12:22:30 -07:00
parent 2988a5e433
commit 98b766b8df
2 changed files with 3 additions and 1 deletions

View File

@@ -16,6 +16,7 @@ Send your shippings through Stamps.com and track them online.
""",
'depends': [
'delivery',
'delivery_hibou',
],
'demo': [],
'data': [

View File

@@ -257,7 +257,8 @@ class ProviderStamps(models.Model):
shipping.Amount = rate.Amount
shipping.ServiceType = rate.ServiceType
shipping.DeliverDays = rate.DeliverDays
shipping.DimWeighting = rate.DimWeighting
if hasattr(rate, 'DimWeighting'):
shipping.DimWeighting = rate.DimWeighting
shipping.Zone = rate.Zone
shipping.RateCategory = rate.RateCategory
shipping.ToState = rate.ToState