Repository
OCA/l10n-spain · module folder · Try on Runboat
Module version
1.1.3
Category
Stock
Folder size
0.28 MB
License
AGPL-3
Application
No
Auto-installable
No
Website
https://github.com/OCA/l10n-spain
Last tracking update
2026-08-07 08:42:46
Authors
Odoo Community Association (OCA), Tecnativa
Maintainers
Odoo Community Association (OCA), Tecnativa
Committers
Pedro M. Baeza, Carlos Lopez, sergio-teruel, Ethan Hildick, Weblate, Ricard Calvo, OCA-git-bot, oca-ci, arantxa-s73
Odoo dependencies
Python dependencies
suds-py3
System dependencies
None
Required by
None
Description
Este módulo integra la API de GLS España (antigua API de ASM) con Odoo.
No es válido para integraciones de GLS en otros países, que podrían usar
otras APIs.

Code Analysis

Views touched (6)
XML IDNameModelTypeStatus
delivery_manifest_wizard_form gls.asm.minifest.wizard form New
gls_asm_manifest_report_view gls_asm_manifest_report_view ir.ui.view qweb New
view_delivery_carrier_form delivery.carrier form Inherits delivery.view_delivery_carrier_form
view_picking_form stock.picking form Inherits stock_delivery.view_picking_withcarrier_out_form
view_picking_gls_form stock.picking form Inherits stock.view_picking_form
view_picking_withcarrier_out_form stock.picking form Inherits delivery_state.view_picking_withcarrier_out_form
HTTP endpoints (0)

No HTTP endpoints found for this module.

Models touched (3)

New fields (8)
  • delivery_type Selection
    ondelete={'gls_asm': 'set default'} selection_add=[('gls_asm', 'GLS ASM')]
  • gls_asm_cash_on_delivery Boolean
    help='If checked, it means that the carrier is paid with cash. It assumes there is a sale order linked and it will use that total amount as the value to be paid' string='Cash on delivery'
  • gls_asm_postage_type Selection
    default='P' help="Postage type, usually 'Prepaid'" selection=GLS_POSTAGE_TYPE string='Postage Type'
  • gls_asm_service Selection
    default='1' help='Set the contracted GLS Service' selection=GLS_ASM_SERVICES string='GLS Service'
  • gls_asm_shiptime Selection
    default='0' help='Set the desired GLS shipping time for this carrier' selection=GLS_SHIPPING_TIMES string='Shipping Time'
  • gls_asm_uid Char
    string='GLS UID'
  • gls_asm_with_return Boolean
    help="Check this field to mark the delivery as 'With return'. This means that the customer receiving the delivery also has a package to return." string='GLS/ASM With return'
  • gls_is_pickup_service Boolean
    compute='_compute_gls_pickup_service' help='Checked if this service is used for pickups' string='Pick-up service'
Public methods (8)
  • action_get_manifest(self)
    Action to launch the manifest wizard
  • gls_asm_cancel_shipment(self, pickings)
    Cancel the expedition
  • gls_asm_get_label(self, gls_asm_public_tracking_ref)
    Generate label for picking :param picking - stock.picking record :returns pdf file
  • gls_asm_get_tracking_link(self, picking)
    Provide tracking link for the customer
  • gls_asm_rate_shipment(self, order)
    There's no public API so another price method should be used Not implemented with GLS-ASM, these values are so it works with websites
  • gls_asm_send_pickup(self, pickings)
    Send the request to GLS to pick a package up :param pickings: A recordset of pickings :return list: A list of dictionaries although in practice it's called one by one and only the first item in the dict is taken. Due to this design, we have to inject vals in the context to be able to add them to the message.
  • gls_asm_send_shipping(self, pickings)
    Send the package to GLS :param pickings: A recordset of pickings :return list: A list of dictionaries although in practice it's called one by one and only the first item in the dict is taken. Due to this design, we have to inject vals in the context to be able to add them to the message.
  • gls_asm_tracking_state_update(self, picking)
    Tracking state update

New fields (2)
  • carrier_id Many2one → delivery.carrier
    comodel_name='delivery.carrier' domain=[('delivery_type', '=', 'gls_asm')] required=True string='GLS Service'
  • date_from Date
    default=fields.Date.context_today required=True
Public methods (2)
  • get_manifest(self)
  • get_manifest_domain(self)

New fields (6)
  • gls_asm_picking_ref Char
    copy=False string='GLS Picking Reference'
  • gls_asm_public_tracking_ref Char
    copy=False string='GLS Barcode'
  • gls_carrier_is_pickup_service Boolean
    related='carrier_id.gls_is_pickup_service'
  • gls_pickup_state Selection
    copy=False selection=[('recorded', 'Solicitada'), ('received', 'Recibida'), ('assigned', 'Asignada'), ('picked_up_customer', 'Recogido en Cliente'), ('picked_up_agency', 'Recepcionada en Agencia'), ('done', 'Realizada con éxito'), ('not_done', 'No Realizada'), ('incidence', 'Realizada con Incidencia'), ('cancel', 'Anulada'), ('preconfirm', 'A preconfirmar'), ('pending', 'Pendiente Gestión'), ('closed', 'Cerrado'), ('pending_auth', 'Pending Autorización'), ('closed_final', 'Cerrado Definitivo')] string='Estado recogida GLS'
  • gls_shipment_state Selection
    copy=False selection=[('recorded', 'Grabado'), ('manifested', 'Manifestada'), ('transit', 'En tránsito al destino'), ('agency_transit', 'En delegación destino'), ('closed', 'Cerrado por siniestro'), ('cancel', 'Anualada'), ('shipping', 'En reparto'), ('delivered', 'Entregado'), ('partially_delivered', 'Entrega parcial'), ('warehouse', 'Almacenado'), ('return_agency', 'Devuelta'), ('pending', 'Pendiente datos en delegación'), ('held', 'Pendiente autorización'), ('incidence', 'Con incidencia'), ('closed_final', 'Cerrado definitivo'), ('preconfirmed', 'Preconfirmada enrega'), ('cancel_returned', 'Entrega anulada (devuelta)'), ('return_customer', 'Devuelta al cliente'), ('possible_return', 'Posible devolución'), ('requested_return', 'Solicitud de devolución'), ('returning', 'En devolución'), ('origin', 'En delegación origen'), ('destroyed', 'Destruido por orden del cliente'), ('held_order', 'Retenido por orden de paga'), ('in_platform', 'En plataforma de destino'), ('extinguished', 'Recanalizada (A extinguir)'), ('parcelshop', 'Entregado en ASM PARCELSHOP'), ('parcelshop_confirm', 'ASM PARCELSHOP CONFIRMA RECEPCIÓN')] string='Estado envío GLS'
  • gls_shipping_notes Text
    string='Notas de envío GLS'
Public methods (2)
  • gls_asm_get_label(self)
    Get GLS Label for this picking expedition
  • gls_asm_send_pickup(self)

Loading…

Loading…

Loading…

Loading…

Loading…

Loading…

Status
Open migration PR — not merged yet for this version
CI status
checks failing
Open since
233 days ago
Last activity
84 days ago
Repository
OCA/l10n-spain
Pull request
[19.0][MIG] delivery_gls_asm: Migration to 19.0 (#4685)