Skip to main content

Invoices generation for Django Oscar

Project description

In order to generate invoice it’s required to create two model records:

  • Merchant account, oscar_invoices.abstract_models.AbstractLegalEntity. In contains shop name, seller’s business name, website, email, VAT number etc.
  • Merchant address, oscar_invoices.abstract_models.AbstractLegalEntityAddress. It’s quite similar to the order shipping or billing address.

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Filename, size & hash SHA256 hash help File type Python version Upload date
django_oscar_invoices-0.1-py3.6.egg (20.4 kB) Copy SHA256 hash SHA256 Egg 3.6
django-oscar-invoices-0.1.tar.gz (8.6 kB) Copy SHA256 hash SHA256 Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page