Source code for shuup.admin.modules.orders.utils
# -*- coding: utf-8 -*-
# This file is part of Shuup.
#
# Copyright (c) 2012-2021, Shuup Commerce Inc. All rights reserved.
#
# This source code is licensed under the OSL-3.0 license found in the
# LICENSE file in the root directory of this source tree.
[docs]class OrderInformation(object):
order = 1
title = "default"
def __init__(self, order, **kwargs):
self.order = order
[docs] def provides_info(self):
"""
Override to add business logic if the order should show this information row.
"""
return self.information is not None
@property
def information(self):
"""
Override this property to return wanted information about the order.
"""
return None