# Impacted versions:
10.0

# Steps to reproduce:
Create 2 companies:

- Company A and check VIES VAT Check
- Company B and do not check VIES VAT Check

Set current company of admin user to Company A and do not allow Company B
Create a demo user on Company B and give him Adviser group in Accounting.

Log in with the demo user.
Create a Customer A as a company with:
- country = Spain
- TIN = 85847955H

Create a contact on Customer A: "Contact Sample"
Create a Customer invoice on "Contact Sample" partner

Through the menu Accounting/Payments, create a new payment on "Contact Sample" partner with the total amount of the invoice.

Open the menu Manual Payments and invoicing matching. The invoice and the payment should be proposed for reconciliation. Do CTRL+ENTER.

# Current behavior:

An error message appears: The VAT number [85847955H] for partner [Contact Sample] either failed the VIES VAT validation check or did not respect the expected format ESA12345674.

# Expected behavior:

This message should not appear as the current user is on Company B which doesn't have the flag "VIES VAT Check" checked.


#
        if self.__check_vat_ch_re1.match(vat):
            return True
        match = self.__check_vat_ch_re2.match(vat)
        if match:
            
            num = filter(lambda s: s.isdigit(), match.group(1))        
            factor = (5, 4, 3, 2, 7, 6, 5, 4)
            csum = sum([int(num[i]) * factor[i] for i in range(8)])
            check = (11 - (csum % 11)) % 11
            return check == int(num[8])
        return False
    def _ie_check_char(self, vat):
        vat = vat.zfill(8)
        extra = 0
        if vat[7] not in ' W':
            if vat[7].isalpha():
                extra = 9 * (ord(vat[7]) - 64)
            else:
                
                return -1
        checksum = extra + sum((8-i) * int(x) for i, x in enumerate(vat[:7]))
        return 'WABCDEFGHIJKLMNOPQRSTUV'[checksum % 23]
    def check_vat_ie(self, vat):