Skip to content

[19.0][MIG] delivery_gls_asm: Migration to 19.0#4685

Open
RicardCForgeFlow wants to merge 47 commits intoOCA:19.0from
ForgeFlow:19.0-mig-delivery_gls_asm
Open

[19.0][MIG] delivery_gls_asm: Migration to 19.0#4685
RicardCForgeFlow wants to merge 47 commits intoOCA:19.0from
ForgeFlow:19.0-mig-delivery_gls_asm

Conversation

@RicardCForgeFlow
Copy link
Contributor

@RicardCForgeFlow RicardCForgeFlow commented Dec 30, 2025

Se ha añadido tests. En el modo de pruebas, la cancelación de pickup devuelve el Error Desconocido -204. (Método _cancel_pickup) Esto no sé si es debido a estar en modo prueba o también ocurre en entornos de producción.

@ForgeFlow

@RicardCForgeFlow RicardCForgeFlow mentioned this pull request Dec 30, 2025
34 tasks
@RicardCForgeFlow RicardCForgeFlow marked this pull request as ready for review December 30, 2025 13:08
@pedrobaeza
Copy link
Member

/ocabot migration delivery_gls_asm

A revisar CI.

@OCA-git-bot OCA-git-bot added this to the 19.0 milestone Dec 30, 2025
@RicardCForgeFlow RicardCForgeFlow changed the title [19.0][MIG] delivery_gls_asm [19.0][MIG] delivery_gls_asm: Migration to 19.0 Dec 31, 2025
@RicardCForgeFlow RicardCForgeFlow force-pushed the 19.0-mig-delivery_gls_asm branch 2 times, most recently from a2d86a3 to e3cc89c Compare December 31, 2025 09:08
@RicardCForgeFlow RicardCForgeFlow marked this pull request as draft December 31, 2025 09:47
@RicardCForgeFlow RicardCForgeFlow marked this pull request as ready for review December 31, 2025 11:30
@RicardCForgeFlow RicardCForgeFlow marked this pull request as draft December 31, 2025 11:56
@RicardCForgeFlow RicardCForgeFlow force-pushed the 19.0-mig-delivery_gls_asm branch 2 times, most recently from 342b823 to f6a8224 Compare January 2, 2026 11:02
@RicardCForgeFlow RicardCForgeFlow marked this pull request as ready for review January 2, 2026 11:07
# make the expedition. Try to fallback to the commercial entity one
"destinatario_telefono": consignee.phone or consignee_entity.phone or "",
"destinatario_movil": consignee.mobile or consignee_entity.mobile or "",
"destinatario_movil": "",
Copy link
Contributor

@Alexgars73 Alexgars73 Feb 23, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pienso que este cambio no es correcto realizando la prueba, hay veces que salta error que el móvil del destinatario es un campo obligatorio.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Vaya 😞 ! Ponemos el campo phone entonces?

En Odoo 19 han borrado el campo mobile (bastantes quejas por lo que veo):
odoo/odoo@6b820eb
odoo/odoo#189739

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

chienandalu and others added 12 commits February 23, 2026 18:38
[UPD] Update delivery_gls_asm.pot

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-12.0/l10n-spain-12.0-delivery_gls_asm
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-12-0/l10n-spain-12-0-delivery_gls_asm/

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-12.0/l10n-spain-12.0-delivery_gls_asm
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-12-0/l10n-spain-12-0-delivery_gls_asm/
Non implemented methods should raise informative exceptions if used

[UPD] Update delivery_gls_asm.pot

delivery_gls_asm 12.0.1.0.1

Update translation files

Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: l10n-spain-12.0/l10n-spain-12.0-delivery_gls_asm
Translate-URL: https://translation.odoo-community.org/projects/l10n-spain-12-0/l10n-spain-12-0-delivery_gls_asm/
delivery_gls_asm 12.0.1.0.2
The `cliente` key corresponds to the company not to the customer, wich
is `nombre_dst`

delivery_gls_asm 12.0.1.0.3
Alhough it will raise another exception, at least it will show the
proper message and not a traceback.
Ensure that the values sent to the xml soap request are properly
escaped. A partner name like "Johnson & Johnson" would fail otherwise.
[UPD] Update delivery_gls_asm.pot

[UPD] README.rst
manuelregidor and others added 15 commits February 23, 2026 18:38
- Fix tests to declare packages explicitly
- Fix wrong keyword literals on errors

TT45144
New shipping times and renaming of some of them by GLS

TT48760
Check the actual value that is being sent to GLS, since it doesn't make sense to error for 15 characters when the value you would send doesn't actually exceed that limit
My use case is that we have some clients that deliver a whole stock.picking.batch instead of stock.picking individually,
therefore the reference we use is the batch's name (overwritten through _prepare_gls_asm_shipping).
This started erroring when the picking reference reached 16 characters while the batch reference is still only 10
Main github account has been renamed, the previous one now only exists as a redirect. Changing to receive notifications correctly
@RicardCForgeFlow RicardCForgeFlow force-pushed the 19.0-mig-delivery_gls_asm branch from 65b4c50 to 9b1219f Compare February 23, 2026 17:39
@RicardCForgeFlow RicardCForgeFlow marked this pull request as draft February 23, 2026 17:45
@RicardCForgeFlow RicardCForgeFlow force-pushed the 19.0-mig-delivery_gls_asm branch 2 times, most recently from 6dcb2e5 to dbf7edd Compare February 23, 2026 17:53
Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Por favor, no lo hagáis depender de partner_mobile. Eso me parece un despropósito y forzar a la gente a instalar un módulo que a lo mejor no quiere. Utilizad phone, o como mucho, si queréis detectar dinámicamente si existe el campo mobile, utilizar ése (if "mobile" in self.partner_id).

@RicardCForgeFlow RicardCForgeFlow force-pushed the 19.0-mig-delivery_gls_asm branch from dbf7edd to 319cc3b Compare February 24, 2026 08:07
@RicardCForgeFlow RicardCForgeFlow marked this pull request as ready for review February 24, 2026 08:12
@RicardCForgeFlow
Copy link
Contributor Author

Por favor, no lo hagáis depender de partner_mobile. Eso me parece un despropósito y forzar a la gente a instalar un módulo que a lo mejor no quiere. Utilizad phone, o como mucho, si queréis detectar dinámicamente si existe el campo mobile, utilizar ése (if "mobile" in self.partner_id).

Okay! He añadido el if "mobile" in self.partner_id y quitado la dependencia de partner_mobile. Queda el codigo menos limpio, pero creo que vale la pena ganar la precisión en caso de que alguien tenga el campo mobile

Copy link
Contributor

@Reyes4711-S73 Reyes4711-S73 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.