I try to import journal entries in a multi company environment as Administrator. This fails with reason that the company_id validation found that account.company is not equal to period.company. I found out that this only happens if yhe default company in Administrator is different from the company in the entries. Becaus I use the external id's from both accounts and periods the error message has to be misleading. I checked and saw, that "_check_company_id in account_move_line.py not only checks if account.company == period.company, but also if these two are equal to the company_id from the context. I think it is a bug. Any other insights?
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
|Asked: 7/21/13, 1:21 PM|
|Seen: 1157 times|
|Last updated: 3/16/15, 8:10 AM|