OCA / l10n-spain  🇪🇸  AGPL-3.0

GLS Spain Connector

Integrate GLS Spain (ASM API) directly into your Odoo warehouse workflow. From the delivery order you can generate the label, register the shipment with GLS, request a pickup, and track the package status in real time — without leaving Odoo and without double data entry.

delivery_gls_asm
Odoo 12.0 → 18.0
GLS Spain (ASM API)
🇪🇸 Spain · Europe
GLS
delivery_gls_asm
AGPL-3.0
Versions12 → 18
APIGLS ASM
TagsPDF · ZPL
Maintained byOCA + FlexigoTech
Workflow
How does it work day to day?

Once installed, the GLS shipping process is fully integrated into Odoo. Here is the step-by-step workflow:

1
Set up the delivery method

In Inventory → Delivery Methods, create a new one, choose GLS ASM as the provider, and configure your credentials and contracted service (Standard, Express, etc.).

2
Validate the delivery order

When confirming the delivery, the module automatically calls the GLS API, registers the shipment, and retrieves the tracking number and label.

3
Print the label

The GLS label (PDF or ZPL for Zebra printers) is attached to the delivery order. Print it directly from Odoo without accessing the GLS portal.

4
Automatic tracking

The shipment status (in transit, delivered, incident) is automatically updated on the delivery order. The customer receives a notification with their tracking number.

Features
Everything included in the module

Features verified in the OCA repository and in real FlexigoTech implementations.

PDF and ZPL label generation

Generate GLS labels in PDF format (for any printer) or ZPL (for Zebra thermal printers). The label includes barcode, address, and contracted service details.

Automatic on validation
Flexible package numbering

Supports both the module's own package number field and Odoo's native shipping package flow. Compatible with multi-package shipments.

Multi-package
Real-time tracking

Automatic shipment status queries to the GLS API. Statuses (pickup pending, in transit, delivered, failed) are reflected directly in Odoo's stock.picking.

No GLS portal access needed
Scheduled pickups

Request pickups from GLS directly from Odoo with time window and address selection. The pickup confirmation is logged in the delivery order chatter.

API GLS ASM
Shipment cancellation

Cancel a shipment registered with GLS directly from the "Additional Information" tab of the delivery order, without needing to access the GLS portal.

From the delivery order
Integrated technical debugging

Each GLS delivery method has a "Technical" tab showing the last API request and response. Essential for diagnosing communication errors with GLS.

Debug API

Technical requirements

  • Odoo 12.0 to 18.0 — Compatible with all major versions.
  • Python: suds-py3 — SOAP library required to communicate with the GLS ASM API.
  • Dependent OCA modules: delivery_package_number, delivery_state (OCA/delivery-carrier).
  • GLS ASM Credentials: ASM API username and password provided by GLS Spain.
  • Test environment: GLS ASM has a test API to validate the integration without generating real shipments.
  • delivery_price_method (recommended) — To calculate shipping costs in real time, since the GLS API does not return prices.

Configuration in Odoo

  • Inventory → Settings → Shipping Methods → New
  • Provider: GLS ASM
  • Enter username, password and ASM client code
  • Select the contracted service (Standard, Express, Cold...)
  • Check "Test environment" for previous tests
  • Save and validate with a test delivery note
# Python dependencies (requirements.txt)
suds-py3>=1.4.4
Supported Odoo versions
Odoo 12.0 13.0 14.0 15.0 16.0 17.0 18.0 ★ current

FlexigoTech actively maintains versions 17 and 18. For older versions we perform a prior compatibility audit.

GLS in other countries?
This module is specific to Spain: it implements the GLS ASM API, which is the interface GLS uses for the Spanish market. If you operate in other European countries with GLS, separate connectors are available in OCA/delivery-carrier. Contact us.

AGPL-3.0 License — Open Source

This module is developed and maintained by the OCA community under the AGPL-3.0 license. This means the source code is public and auditable, and you are never locked into a specific vendor. FlexigoTech installs, configures, and professionally maintains it without charging you for it as a proprietary module.

What does the AGPL mean for your company? Complete guide →

View code on GitHub OCA

Do you use GLS in Spain and have Odoo?

FlexigoTech installs, configures, and adapts this connector to your real operations. Labels, pickups, and tracking working from day one.

Request free implementation

No commitment · Response within 24h · Fixed-price quote

How can we help you?

Specialized team · Replies in <1 day

Schedule a demo Send us a WhatsApp comercial@flexigobe.com