# 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.company_id:
            self.currency_id = self.sudo().company_id.currency_id
        else:
            self.currency_id = self.env.user.company_id.currency_id
    credit = fields.Monetary(compute='_credit_debit_get', search=_credit_search,
        string='Total Receivable', help="Total amount this customer owes you.")
    debit = fields.Monetary(compute='_credit_debit_get', search=_debit_search, string='Total Payable',
        help="Total amount you have to pay to this vendor.")
    debit_limit = fields.Monetary('Payable Limit')
    total_invoiced = fields.Monetary(compute='_invoice_total', string="Total Invoiced",
        groups='account.group_account_invoice')
    currency_id = fields.Many2one('res.currency', compute='_get_company_currency', readonly=True,
        string="Currency", help='Utility field to express amount currency')
    contracts_count = fields.Integer(compute='_journal_item_count', string="Contracts", type='integer')
    journal_item_count = fields.Integer(compute='_journal_item_count', string="Journal Items", type="integer")
    issued_total = fields.Monetary(compute='_compute_issued_total', string="Journal Items")
    property_account_payable_id = fields.Many2one('account.account', company_dependent=True,
        string="Account Payable", oldname="property_account_payable",
        domain="[('internal_type', '=', 'payable'), ('deprecated', '=', False)]",
        help="This account will be used instead of the default one as the payable account for the current partner",
        required=True)
    property_account_receivable_id = fields.Many2one('account.account', company_dependent=True,