Odoo Help


This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.


Multi-company. How do I resolve "Account and Period must belong to the same company."?

on 7/4/16, 10:35 AM 366 views

I have two companies with their chart of account.

I'm trying to record a payment.

My user, the customer, the invoice, the period, the account are all in the secondary company.

But somehow, I get the error: "Account and Period must belong to the same company."

I've checked in the database, all records with company_id are set to my secondary company.

On 7/7/16, 9:50 AM

If this error occurs on the invoice validation:

-> the invoice and the taxes of the invoice lines must have the same company

If this error occurs on the payment:

-> the invoice and the credit/debit accounts of the payment journal must have the same company

I edited your question to reflect the problem - so others can find the answer if they have the same problem.

Bista Solutions US, Ray Carnes
on 7/7/16, 12:44 PM

Thank you Ray Carnes, I forgot to do that. Also I have to edit the response since I resolved a similar issue (same error message, slightly different context).

on 7/8/16, 8:36 AM


| 5 4 7
Bengaluru, India

Techno-Functional Associate with 6+ years of experience in Odoo (formerly known as OpenERP).

On 7/5/16, 6:08 AM

I suppose you are using Odoo 8 or below version.

If so, it depends on the user and his access, say you have logged in as "UserA" who has access to both the company.

Now when you are trying to make a payment, chances are always high that you may, or default values being fetched might belong to other company, hence system validates for such records, while posting.

So the best way to deal with it, either you login to a user who has access to single company and do the transactions, or install a module called "web_easy_switch_company", which helps you switch between the companies easily.

Download and try this App Easy_Switch_Company


Thank you for your response. For the company switch, I have spotted this module, yes. As for the default values, that may be a good hint here, I will look at it.

on 7/5/16, 7:59 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

2 follower(s)


Asked: 7/4/16, 10:35 AM
Seen: 366 times
Last updated: 7/7/16, 12:43 PM