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?
Odoo is the world's easiest all-in-one management software.
It includes hundreds of business apps:
- CRM
- e-Commerce
- Comptabilitat
- Inventari
- PoS
- Project
- MRP
This question has been flagged
5836
Vistes
Enjoying the discussion? Don't just read, join in!
Create an account today to enjoy exclusive features and engage with our awesome community!
Registrar-seRelated Posts | Respostes | Vistes | Activitat | |
---|---|---|---|---|
|
1
de set. 17
|
5966 | ||
|
4
de gen. 25
|
4724 | ||
|
1
d’oct. 22
|
6545 | ||
|
0
de juny 24
|
5349 | ||
|
0
de març 15
|
4546 |
I agree with you, seems to be a bug, although a minor one seeing as you can get around the problem by changing the current company the user is viewing and importing journals per company. Regardless, try reporting it here: https://bugs.launchpad.net/openobject-addons