'Cancel a shipment
:param pickings: A recordset of pickings'

def cancel_shipment(self, pickings):

    self.ensure_one()
    if hasattr(self, ('%s_cancel_shipment' % self.delivery_type)):
        return getattr(self, ('%s_cancel_shipment' % self.delivery_type))(pickings)
