[IMP] stock_delivery: unify document prefixes
Previous to this commit, only the return labels had a consistent prefix for their filenames. This meant that all other shipping related documents had their filenames manually + inconsistently created as strings in every shipping connector. This lead to difficult to distinguish documents across different records' chatters. This commit adds a consistent method for the shipping connectors to use. Part of task: 3046178 - harmonize shipping label names ENT PR: odoo/enterprise#43362 Part-of: odoo/odoo#126791
This commit is contained in:
@@ -55,7 +55,13 @@ class DeliveryCarrier(models.Model):
|
||||
)
|
||||
|
||||
def get_return_label_prefix(self):
|
||||
return 'ReturnLabel-%s' % self.delivery_type
|
||||
return 'LabelReturn-%s' % self.delivery_type
|
||||
|
||||
def _get_delivery_label_prefix(self):
|
||||
return 'LabelShipping-%s' % self.delivery_type
|
||||
|
||||
def _get_delivery_doc_prefix(self):
|
||||
return 'ShippingDoc-%s' % self.delivery_type
|
||||
|
||||
def get_tracking_link(self, picking):
|
||||
''' Ask the tracking link to the service provider
|
||||
|
||||
Reference in New Issue
Block a user