1313from odoo import _ , fields , models
1414from odoo .exceptions import UserError
1515
16- from .ups_request import UpsRequest
16+ from .. ups_request import UpsRequest
1717
1818
1919class DeliveryCarrier (models .Model ):
@@ -204,12 +204,12 @@ def _create_ups_label(self, picking, labels):
204204 format_code = label ["format_code" ].upper ()
205205 label_data = label ["datas" ]
206206 file_extension = format_code
207-
207+
208208 # Convert GIF to PDF only when PDF format is explicitly selected
209209 if self .ups_file_format == "PDF" and format_code == "GIF" :
210210 label_data = self ._convert_gif_to_pdf (label_data )
211211 file_extension = "PDF"
212-
212+
213213 attachment_name = "label-%s.%s" % (
214214 label ["tracking_ref" ],
215215 file_extension .lower (),
@@ -224,7 +224,7 @@ def _create_ups_label(self, picking, labels):
224224 )
225225 )
226226 attachments = self .env ["ir.attachment" ].create (val_list )
227-
227+
228228 # Post attachments to picking's message thread as internal note
229229 # (doesn't notify followers)
230230 if attachments :
@@ -233,7 +233,7 @@ def _create_ups_label(self, picking, labels):
233233 attachment_ids = attachments .ids ,
234234 subtype_xmlid = 'mail.mt_note' ,
235235 )
236-
236+
237237 return attachments
238238
239239 def ups_get_label (self , carrier_tracking_ref ):
0 commit comments