# 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.


addons/account/models/partner.py
for pos in self.account_ids:
            if pos.account_src_id == account:
                return pos.account_dest_id
        return account
    @api.model
    def map_accounts(self, accounts):
        """ Receive a dictionary having accounts in values and try to replace those accounts accordingly to the fiscal position.
        """
        ref_dict = {}
        for line in self.account_ids:
            ref_dict[line.account_src_id] = line.account_dest_id
        for key, acc in accounts.items():
            if acc in ref_dict:
                accounts[key] = ref_dict[acc]
        return accounts
    @api.onchange('country_id')
    def _onchange_country_id(self):
        if self.country_id:
            self.zip_from = self.zip_to = self.country_group_id = False
            self.state_ids = [(5,)]
            self.states_count = len(self.country_id.state_ids)
    @api.onchange('country_group_id')
    def _onchange_country_group_id(self):
        if self.country_group_id:
            self.zip_from = self.zip_to = self.country_id = False
            self.state_ids = [(5,)]
    @api.model
    def _get_fpos_by_region(self, country_id=False, state_id=False, zipcode=False, vat_required=False):