Force VAT validation on each save
This commit is contained in:
parent
99e70d95c4
commit
262bf3e2f7
1 changed files with 3 additions and 0 deletions
|
@ -629,6 +629,9 @@ class SettingsView(LoginRequiredMixin, FormView):
|
|||
instance=self.request.user.billing_addresses.first(),
|
||||
data=billing_address_data)
|
||||
billing_address = billing_address_user_form.save()
|
||||
billing_address.stripe_tax_id = ''
|
||||
billing_address.vat_validated_on = None
|
||||
billing_address.save()
|
||||
vat_number = billing_address_user_form.cleaned_data.get(
|
||||
'vat_number').strip()
|
||||
if vat_number:
|
||||
|
|
Loading…
Reference in a new issue