mirror of
https://gitlab.com/hibou-io/hibou-odoo/suite.git
synced 2025-01-20 12:37:31 +02:00
[FIX] delivery_stamps: Only use DimWeighting if the rate has it.
This commit is contained in:
@@ -274,6 +274,7 @@ class ProviderStamps(models.Model):
|
|||||||
shipping.Amount = rate.Amount
|
shipping.Amount = rate.Amount
|
||||||
shipping.ServiceType = rate.ServiceType
|
shipping.ServiceType = rate.ServiceType
|
||||||
shipping.DeliverDays = rate.DeliverDays
|
shipping.DeliverDays = rate.DeliverDays
|
||||||
|
if hasattr(rate, 'DimWeighting'):
|
||||||
shipping.DimWeighting = rate.DimWeighting
|
shipping.DimWeighting = rate.DimWeighting
|
||||||
shipping.Zone = rate.Zone
|
shipping.Zone = rate.Zone
|
||||||
shipping.RateCategory = rate.RateCategory
|
shipping.RateCategory = rate.RateCategory
|
||||||
|
|||||||
Reference in New Issue
Block a user