Delivery GLS-ASM
delivery_gls_asm · OCA/l10n-spain
Health
80/100
good
-
Security25/25No findings
-
Activity25/25Last human commit 1 month ago
-
Required by5/250 modules depend on it
-
Maturity25/25In 7 Odoo series since 12.0
Heuristic over the facts below, not an audit · How it's computed
Required by
0
Modules depending on it
External deps
1 pip · 0 bin
Python packages / system binaries
License
AGPL-3
No conflicts with its dependencies
Folder size
0.28 MB
Module directory on disk
Code analysis
0 migration notes
3 models
6 views
0 HTTP endpoints
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.
Dependencies
Code analysis
Extracted from the source by best-effort static analysis (no code is executed); details may be incomplete.
Views touched 6
| XML ID | Name | Model | Type | Status |
|---|---|---|---|---|
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_typeSelectionondelete={'gls_asm': 'set default'}selection_add=[('gls_asm', 'GLS ASM')] -
gls_asm_cash_on_deliveryBooleanhelp='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_typeSelectiondefault='P'help="Postage type, usually 'Prepaid'"selection=GLS_POSTAGE_TYPEstring='Postage Type' -
gls_asm_serviceSelectiondefault='1'help='Set the contracted GLS Service'selection=GLS_ASM_SERVICESstring='GLS Service' -
gls_asm_shiptimeSelectiondefault='0'help='Set the desired GLS shipping time for this carrier'selection=GLS_SHIPPING_TIMESstring='Shipping Time' -
gls_asm_uidCharstring='GLS UID' -
gls_asm_with_returnBooleanhelp="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_serviceBooleancompute='_compute_gls_pickup_service'help='Checked if this service is used for pickups'string='Pick-up service'
-
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_idMany2one → delivery.carriercomodel_name='delivery.carrier'domain=[('delivery_type', '=', 'gls_asm')]required=Truestring='GLS Service' -
date_fromDatedefault=fields.Date.context_todayrequired=True
-
get_manifest(self) -
get_manifest_domain(self)
New fields (6)
-
gls_asm_picking_refCharcopy=Falsestring='GLS Picking Reference' -
gls_asm_public_tracking_refCharcopy=Falsestring='GLS Barcode' -
gls_carrier_is_pickup_serviceBooleanrelated='carrier_id.gls_is_pickup_service' -
gls_pickup_stateSelectioncopy=Falseselection=[('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_stateSelectioncopy=Falseselection=[('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_notesTextstring='Notas de envío GLS'
-
gls_asm_get_label(self)Get GLS Label for this picking expedition -
gls_asm_send_pickup(self)
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…
Loading…