Source code for shoop.order_printouts.admin_module

# -*- coding: utf-8 -*-
# This file is part of Shoop.
#
# Copyright (c) 2012-2016, Shoop Ltd. All rights reserved.
#
# This source code is licensed under the AGPLv3 license found in the
# LICENSE file in the root directory of this source tree.
from __future__ import unicode_literals

from shoop.admin.base import AdminModule
from shoop.admin.utils.urls import admin_url


[docs]class PrintoutsAdminModule(AdminModule):
[docs] def get_urls(self): return [ admin_url( "^printouts/delivery/(?P<shipment_pk>\d+)/$", "shoop.order_printouts.admin_module.views.get_delivery_pdf", name="printouts.delivery_pdf" ), admin_url( "^printouts/confirmation/(?P<order_pk>\d+)/$", "shoop.order_printouts.admin_module.views.get_confirmation_pdf", name="printouts.confirmation_pdf" ), ]