Skip to content

Commit

Permalink
Make invoice creation more flexible
Browse files Browse the repository at this point in the history
Decision about when to create invoices should be made by developer. So here
removed all parts related to automatic creation of invoices.

* Removed `OSCAR_INVOICES_GENERATE_AFTER_ORDER_PLACED` setting.
* Removed `ready` method from app config.
* Deleted `receivers.py`.
  • Loading branch information
samitnuk authored and Alexander Gaevsky committed Aug 25, 2018
1 parent 98deb9a commit ad1312f
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 17 deletions.
2 changes: 0 additions & 2 deletions oscar_invoices/app_settings.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@

OSCAR_INVOICES_UPLOAD_FOLDER = getattr(settings, 'OSCAR_INVOICES_UPLOAD_FOLDER', 'invoices/%Y/%m/')

OSCAR_INVOICES_GENERATE_AFTER_ORDER_PLACED = getattr(settings, 'OSCAR_INVOICES_GENERATE_AFTER_ORDER_PLACED', False)

OSCAR_INVOICE_INVOICE_MODEL = getattr(settings, 'OSCAR_INVOICE_INVOICE_MODEL', 'oscar_invoices.Invoice')
3 changes: 0 additions & 3 deletions oscar_invoices/config.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,3 @@ class InvoicesConfig(AppConfig):
label = 'oscar_invoices'
name = 'oscar_invoices'
verbose_name = _('Invoices')

def ready(self):
from . import receivers # noqa
12 changes: 0 additions & 12 deletions oscar_invoices/receivers.py

This file was deleted.

0 comments on commit ad1312f

Please sign in to comment.