old_contents: # -*- coding: utf-8 -*-
  """
      __init__.py
  
      :copyright: (c) 2015 by Openlabs Technologies & Consulting (P) Limited
      :license: BSD, see LICENSE for more details.
  """
  from trytond.pool import Pool
  from carrier import Carrier, TestConnection, TestConnectionStart
  from party import Address
  from shipment import ShipmentOut, GenerateShippingLabel, ShippingDPD
  from sale import Sale, SaleConfiguration
  
  
  def register():
      Pool.register(
          Address,
          Carrier,
          Sale,
          SaleConfiguration,
          ShipmentOut,
          ShippingDPD,
          TestConnectionStart,
          module='shipping_dpd', type_='model'
      )
  
      Pool.register(
          TestConnection,
          GenerateShippingLabel,
          module='shipping_dpd', type_='wizard'
      )
  
new_contents: # -*- coding: utf-8 -*-
  """
      __init__.py
  
      :copyright: (c) 2015 by Openlabs Technologies & Consulting (P) Limited
      :license: BSD, see LICENSE for more details.
  """
  from trytond.pool import Pool
  from carrier import Carrier, TestConnection, TestConnectionStart
  from party import Address
  from shipment import ShipmentOut, GenerateShippingLabel, ShippingDPD
  from sale import Sale, SaleConfiguration
  
  
  def register():
      Pool.register(
          Address,
          Carrier,
          SaleConfiguration,
          Sale,
          ShipmentOut,
          ShippingDPD,
          TestConnectionStart,
          module='shipping_dpd', type_='model'
      )
  
      Pool.register(
          TestConnection,
          GenerateShippingLabel,
          module='shipping_dpd', type_='wizard'
      )
  
subject: sale configuration should be register before sale