diff --git a/hantec_api_ecommerce/models/sale_order.py b/hantec_api_ecommerce/models/sale_order.py index a0713b1..4287f4b 100644 --- a/hantec_api_ecommerce/models/sale_order.py +++ b/hantec_api_ecommerce/models/sale_order.py @@ -13,7 +13,6 @@ def get_shipping_info(self): Returns: dict: A dictionary containing the shipping information. """ - # Delivery address data shipping_address = self.partner_shipping_id fields = [ @@ -29,19 +28,6 @@ def get_shipping_info(self): ] address_data = shipping_address.read(fields)[0] if shipping_address else {} - address_data.update( - { - "state": ( - shipping_address.state_id.name if shipping_address.state_id else "" - ), - "country": ( - shipping_address.country_id.name - if shipping_address.country_id - else "" - ), - } - ) - # Get related shipping records pickings = self.picking_ids @@ -63,7 +49,6 @@ def get_shipping_info(self): "name": picking.name, "scheduled_date": picking.scheduled_date, "state": picking.state, - "tracking_reference": picking.carrier_tracking_ref, "lines": lines_data, "address_data": address_data, }