Force VAT validation on each save

This commit is contained in:
PCoder 2019-12-26 13:49:18 +05:30
parent 99e70d95c4
commit 262bf3e2f7

View file

@ -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: