Source code for shuup.order_printouts.utils

[docs] class PrintoutDeliveryExtraInformation: order = 1
[docs] def __init__(self, order, shipment, **kwargs): self.order = order self.shipment = shipment
[docs] def provides_extra_fields(self): """ Override to add business logic if this module has any extra fields to add to the delivery printout. """ return self.extra_fields is not None
@property def extra_fields(self): """ Override this property to return wanted information about the order. This property should return a dictionary of field names and values which will be rendered to the order delivery printout. """ return {}