Allow to add a custom text above the invoice address

This commit is contained in:
Raphael Michel
2019-03-18 17:01:03 +01:00
parent a0af0cfb06
commit 07b4b8c473
5 changed files with 24 additions and 0 deletions

View File

@@ -627,6 +627,13 @@ class InvoiceSettingsForm(SettingsForm):
"products."),
required=False
)
invoice_address_explanation_text = I18nFormField(
label=_("Invoice address explanation"),
required=False,
widget=I18nTextarea,
widget_kwargs={'attrs': {'rows': '2'}},
help_text=_("This text will be shown above the invoice address form during checkout.")
)
invoice_numbers_consecutive = forms.BooleanField(
label=_("Generate invoices with consecutive numbers"),
help_text=_("If deactivated, the order code will be used in the invoice number."),