(self, picking)
return {
            "Customer": self.dhl_parcel_customer_code,
            "Receiver": self._get_dhl_parcel_receiver_info(picking),
            "Sender": self._get_dhl_parcel_sender_info(picking),  # [optional]
            "Reference": picking.name,  # [optional]
            "Quantity": picking.number_of_packages,  # 1-999
            "Weight": picking.shipping_weight,  # in kg, 1-99999
            "WeightVolume": "",  # [optional] Volume, in kg
            "CODAmount": "",  # [optional]
            "CODExpenses": "",  # [optional], mandatory if CODAmount filled
            "CODCurrency": "",  # [optional], mandatory if CODAmount filled
            "InsuranceAmount": "",  # [optional]
            "InsuranceExpenses": "",  # [optional], mandatory if InsuranceAmount filled
            "InsuranceCurrency": "",  # [optional], mandatory if InsuranceAmount filled
            "DeliveryNote": "",  # [optional]
            "ServiceType": "",  # [optional]
            "Remarks1": "",  # [optional]
            "Remarks2": "",  # [optional]
            "Incoterms": self.dhl_parcel_incoterm,  # CPT paid, EXW owed
            "Product": self._get_dhl_parcel_product(picking),
            "ContactName": "",  # [optional]
            "GoodsDescription": "",  # [optional]
            "CustomsValue": "",  # [optional]
            "CustomsCurrency": "",  # [optional]
            "Format": "PDF",  # [optional]
            "tracking_number": False,
            "exact_price": 0,
        }
Convert picking values for dhl parcel api
        :param picking record with picking to send
        :returns dict values for the connector
Convert picking values for dhl parcel api
        :param picking record with picking to send
        :returns dict values for the connector
Convert picking values for dhl parcel api : param picking record with picking to send : returns dict values for the connector
def _prepare_dhl_parcel_shipping(self, picking):
        """Convert picking values for dhl parcel api
        :param picking record with picking to send
        :returns dict values for the connector
        """
        self.ensure_one()
        return {
            "Customer": self.dhl_parcel_customer_code,
            "Receiver": self._get_dhl_parcel_receiver_info(picking),
            "Sender": self._get_dhl_parcel_sender_info(picking),  # [optional]
            "Reference": picking.name,  # [optional]
            "Quantity": picking.number_of_packages,  # 1-999
            "Weight": picking.shipping_weight,  # in kg, 1-99999
            "WeightVolume": "",  # [optional] Volume, in kg
            "CODAmount": "",  # [optional]
            "CODExpenses": "",  # [optional], mandatory if CODAmount filled
            "CODCurrency": "",  # [optional], mandatory if CODAmount filled
            "InsuranceAmount": "",  # [optional]
            "InsuranceExpenses": "",  # [optional], mandatory if InsuranceAmount filled
            "InsuranceCurrency": "",  # [optional], mandatory if InsuranceAmount filled
            "DeliveryNote": "",  # [optional]
            "ServiceType": "",  # [optional]
            "Remarks1": "",  # [optional]
            "Remarks2": "",  # [optional]
            "Incoterms": self.dhl_parcel_incoterm,  # CPT paid, EXW owed
            "Product": self._get_dhl_parcel_product(picking),
            "ContactName": "",  # [optional]
            "GoodsDescription": "",  # [optional]
            "CustomsValue": "",  # [optional]
            "CustomsCurrency": "",  # [optional]
            "Format": "PDF",  # [optional]
            "tracking_number": False,
            "exact_price": 0,
        }
def _prepare_dhl_parcel_shipping ( self , picking ) : self . ensure_one ( ) return { "Customer" : self . dhl_parcel_customer_code , "Receiver" : self . _get_dhl_parcel_receiver_info ( picking ) , "Sender" : self . _get_dhl_parcel_sender_info ( picking ) , # [optional] "Reference" : picking . name , # [optional] "Quantity" : picking . number_of_packages , # 1-999 "Weight" : picking . shipping_weight , # in kg, 1-99999 "WeightVolume" : "" , # [optional] Volume, in kg "CODAmount" : "" , # [optional] "CODExpenses" : "" , # [optional], mandatory if CODAmount filled "CODCurrency" : "" , # [optional], mandatory if CODAmount filled "InsuranceAmount" : "" , # [optional] "InsuranceExpenses" : "" , # [optional], mandatory if InsuranceAmount filled "InsuranceCurrency" : "" , # [optional], mandatory if InsuranceAmount filled "DeliveryNote" : "" , # [optional] "ServiceType" : "" , # [optional] "Remarks1" : "" , # [optional] "Remarks2" : "" , # [optional] "Incoterms" : self . dhl_parcel_incoterm , # CPT paid, EXW owed "Product" : self . _get_dhl_parcel_product ( picking ) , "ContactName" : "" , # [optional] "GoodsDescription" : "" , # [optional] "CustomsValue" : "" , # [optional] "CustomsCurrency" : "" , # [optional] "Format" : "PDF" , # [optional] "tracking_number" : False , "exact_price" : 0 , }