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 |
|
| dynamic |
|
| license | BSD |
| metadata_version | 2.4 |
| provides_extras |
|
| requires_dist |
|
Release files
| File | Test results | History |
|---|---|---|
django_oscar_invoices-0.3.1-py3-none-any.whl
|
|
|
django_oscar_invoices-0.3.1.tar.gz
|
|
Installation
$ pip install django-oscar-invoices
Setup
Add oscar_invoices to the INSTALLED_APPS variable of your project’s settings.py.
Sync the database using python manage.py migrate.
Create instances of LegalEntity and LegalEntityAddress.
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.