diff --git a/delivery_gls_asm/models/delivery_carrier.py b/delivery_gls_asm/models/delivery_carrier.py index ccfd5470f36..eede1c4cbd1 100644 --- a/delivery_gls_asm/models/delivery_carrier.py +++ b/delivery_gls_asm/models/delivery_carrier.py @@ -177,7 +177,7 @@ def _prepare_gls_asm_shipping(self, picking): "destinatario_email": escape( consignee.email or consignee_entity.email or "" ), - "destinatario_observaciones": "", + "destinatario_observaciones": picking.gls_shipping_notes or "", "destinatario_att": "", "destinatario_departamento": "", "destinatario_nif": "", diff --git a/delivery_gls_asm/models/stock_picking.py b/delivery_gls_asm/models/stock_picking.py index 545ae67ab53..3a6199530c8 100644 --- a/delivery_gls_asm/models/stock_picking.py +++ b/delivery_gls_asm/models/stock_picking.py @@ -71,6 +71,7 @@ class StockPicking(models.Model): ], copy=False, ) + gls_shipping_notes = fields.Text(string="Notas de envĂ­o GLS") def gls_asm_get_label(self): """Get GLS Label for this picking expedition""" diff --git a/delivery_gls_asm/views/stock_picking_views.xml b/delivery_gls_asm/views/stock_picking_views.xml index 881b2af7b59..27ce5864079 100644 --- a/delivery_gls_asm/views/stock_picking_views.xml +++ b/delivery_gls_asm/views/stock_picking_views.xml @@ -103,4 +103,23 @@ + + stock.picking + + + + + + +