Package release

django-oscar-invoices

mandel/stable · Version 0.3.1

Invoices generation for Django Oscar

Metadata

author Metaclass Team
author_email [email protected]
classifiers
  • Development Status :: 4 - Beta
  • Environment :: Web Environment
  • Framework :: Django
  • Framework :: Django :: 4.0
  • Intended Audience :: Developers
  • License :: OSI Approved :: BSD License
  • Operating System :: Unix
  • Programming Language :: Python :: 3
  • Programming Language :: Python :: 3.9.18
dynamic
  • author
  • author-email
  • classifier
  • description
  • home-page
  • license
  • provides-extra
  • requires-dist
  • summary
license BSD
provides_extras
  • test
  • dev
requires_dist
  • phonenumbers
  • pillow
  • django<6,>=5.2
  • django-oscar<5,>=4.1
  • django-phonenumber-field>=6.4.0
  • coverage>=5.4; extra == "test"
  • django-webtest<1.10,>=1.9; extra == "test"
  • pytest-django<5.0; extra == "test"
  • pytest-xdist<4.0.0,>=3.6.1; extra == "test"
  • sorl-thumbnail<13.0.0,>=12.10.0; extra == "test"
  • psycopg2-binary>=2.9.9; extra == "test"
  • flake8>=4.0.1; extra == "dev"
  • isort>=5.10.1; extra == "dev"

Release files

FileTest resultsHistory
django_oscar_invoices-0.3.1-py3-none-any.whl
Size
18 KB
Type
Python Wheel
Python
3
  • Uploaded to mandel/stable by Mandel-publish 2026-08-11 08:41:09
django_oscar_invoices-0.3.1.tar.gz
Size
14 KB
Type
Source
  • Uploaded to mandel/stable by Mandel-publish 2026-08-11 08:41:09

Installation

$ pip install django-oscar-invoices

Setup

  1. Add oscar_invoices to the INSTALLED_APPS variable of your project’s settings.py.

  2. Sync the database using python manage.py migrate.

  3. Create instances of LegalEntity and LegalEntityAddress.

  4. Integrate InvoiceCreator in your checkout process.

By default, we generate only HTML invoice document and allow user to decide how to generate PDF documents. You can integrate python-pdfkit, WeasyPrint, xhtml2pdf, reportlab or another library of your choice.

Since documents contains sensitive data, we store them out of the media folder and do not provide public access via URL. For this purpose, we use custom storage class oscar_invoices.storages.DocumentsStorage, invoice documents placed into the nested folder settings.OSCAR_INVOICES_UPLOAD_FOLDER and available for the admin users via dashboard order list.

You can find more information in documentation.

Sandbox

Sandbox environment set up to automatically create invoices on checkout. But for this, instances of LegalEntity and LegalEntityAddress must be created (from admin site) before order placement.