Make it optional to notify user on order change

This commit is contained in:
Raphael Michel
2017-10-30 21:24:20 +01:00
parent 5376ce4bdb
commit 429f30fca7
4 changed files with 23 additions and 4 deletions

View File

@@ -90,6 +90,14 @@ class OtherOperationsForm(forms.Form):
'Use with care and only if you need to. Note that rounding differences might occur in this procedure.'
)
)
notify = forms.BooleanField(
label=_('Notify user'),
required=False,
initial=True,
help_text=_(
'Send an email to the customer notifying that their order has been changed.'
)
)
def __init__(self, *args, **kwargs):
kwargs.pop('order')