Order change: Allow to ignore quotas

This commit is contained in:
Raphael Michel
2019-02-11 16:15:54 +01:00
parent d073007fd7
commit f23de7e2c0
5 changed files with 19 additions and 3 deletions

View File

@@ -177,6 +177,10 @@ class OtherOperationsForm(forms.Form):
'Send an email to the customer notifying that their order has been changed.'
)
)
ignore_quotas = forms.BooleanField(
label=_('Allow to overbook quotas when performing this operation'),
required=False,
)
def __init__(self, *args, **kwargs):
kwargs.pop('order')