Supporting invoice-on-demand instead of autogeneration

This commit is contained in:
Raphael Michel
2016-06-05 18:01:10 +02:00
parent 5529ec5e0b
commit 4496f19a68
8 changed files with 84 additions and 6 deletions

View File

@@ -283,7 +283,7 @@ def _perform_order(event: str, payment_provider: str, position_ids: List[str],
except InvoiceAddress.DoesNotExist:
pass
if event.settings.get('invoice_generate'):
if event.settings.get('invoice_generate') == 'True':
generate_invoice(order)
with language(order.locale):