Invoices generation for Django Oscar
Project description
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.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file django-oscar-invoices-0.2.tar.gz
.
File metadata
- Download URL: django-oscar-invoices-0.2.tar.gz
- Upload date:
- Size: 11.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 8f3538907f699bc8875433245754e260d72a857f991cedd208c5b0de71f14067 |
|
MD5 | 58ffd6ba075789f84430f5a298661031 |
|
BLAKE2b-256 | 2a543d74b265c330475d990a17352c330240df11761dac3017cc53a397911072 |
File details
Details for the file django_oscar_invoices-0.2-py3-none-any.whl
.
File metadata
- Download URL: django_oscar_invoices-0.2-py3-none-any.whl
- Upload date:
- Size: 16.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.1.1 pkginfo/1.5.0.1 requests/2.23.0 setuptools/40.9.0 requests-toolbelt/0.9.1 tqdm/4.43.0 CPython/3.7.0
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f1de4b729435630113883947c7e288429e6f816e0b1596373d3426d9506c709f |
|
MD5 | e876d8dbde2472f18590ad2517db4f97 |
|
BLAKE2b-256 | 037c108c32fbebe6d76d586d02250fc17bd19c1988e15b9716ef94f9fec998cf |