Skip to content

specialunderwear/django-oscar-invoices

 
 

Repository files navigation

django-oscar-invoices

Quickstart

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.

About

Application for invoices generation in Django-Oscar.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Python 75.5%
  • HTML 24.5%