Add note field and external identifier to customers (#2605)

This commit is contained in:
Richard Schreiber
2022-04-29 14:43:08 +02:00
committed by GitHub
parent 657cdd07ab
commit edff7b8717
10 changed files with 71 additions and 14 deletions

View File

@@ -1265,7 +1265,8 @@ class CustomerFilterForm(FilterForm):
orders = {
'email': 'email',
'identifier': 'identifier',
'name_cached': 'name_cached',
'name': 'name_cached',
'external_identifier': 'external_identifier',
}
query = forms.CharField(
label=_('Search query'),

View File

@@ -607,7 +607,7 @@ class CustomerUpdateForm(forms.ModelForm):
class Meta:
model = Customer
fields = ['is_active', 'name_parts', 'email', 'is_verified', 'phone', 'locale']
fields = ['is_active', 'external_identifier', 'name_parts', 'email', 'is_verified', 'phone', 'locale', 'notes']
def __init__(self, *args, **kwargs):
super().__init__(*args, **kwargs)
@@ -651,7 +651,7 @@ class CustomerCreateForm(CustomerUpdateForm):
class Meta:
model = Customer
fields = ['identifier', 'is_active', 'name_parts', 'email', 'is_verified', 'locale']
fields = ['is_active', 'identifier', 'external_identifier', 'name_parts', 'email', 'is_verified', 'phone', 'locale', 'notes']
class MembershipUpdateForm(forms.ModelForm):