DHL For China Export Scenarios

A customer wanted to use DHL to ship goods overseas. Because Odoo natively includes a DHL module, the requirement looked simple at first: configure the official module and start shipping. In practice, the official module still used an older XML interface, while DHL had already announced that the old interface would gradually be replaced by the newer RESTful APIs.

After several failed attempts with the official module, we implemented a DHL application adapted for China export scenarios, including customs declaration needs.

Installation And Configuration

Install the DHL module.

Install DHL module

After installation, a new DHL delivery method appears in delivery methods. To distinguish it from the official one, it is named MyDHL here.

MyDHL delivery method

To use DHL, apply for a DHL username, password, and account. Export/import companies also need a DSP account and password for customs declaration.

After configuration, DHL can be used for shipping.

Sales Order Rate Estimation

Like other delivery methods, add a shipping method on the sales order and choose MyDHL.

DHL on sales order

Shipping And Tracking

After confirming the sales order, open the delivery order, configure the required shipping parameters, and complete the delivery.

DHL delivery order

Odoo receives the electronic label returned by DHL.

DHL electronic label 1

DHL electronic label 2

For normal shipments, this may be enough. For China export and customs requirements, additional online declaration is needed.

Online Declaration

Customs declaration requires many parameters. To simplify user operation, the module adapts the required data structures. In addition to configuring the delivery method, users need to configure product parameters.

Example:

DHL product declaration parameters

After configuration, click the upload file button on the delivery order. If the data is valid, Odoo displays an upload success message.

DHL upload declaration file

If there are issues, follow the error prompt and correct the data.

Finally, click online declaration to complete the declaration.

DHL online declaration

This chapter introduced the China-adapted DHL solution. The next chapter covers KDNiao, a logistics aggregation platform for many domestic carriers.

results matching ""

    No results matching ""