Odoo is the world's easiest all-in-one management software. It includes hundreds of business apps:
CRM | e-Commerce | Accounting | Inventory | PoS | Project management | MRP | etc.
When i try to do anything with modules of settings i get the error "Constraint Error
The code of the journal must be unique per company !"
Where do i fix this?
I have the same issue and now I know the reason.
I have a custom module which create Journals as module data. I removed that module from the system (but journals were left in the system). And when I try to install this module again system try to insert Journals from that module in the database with the same codes and names as before. That's why you get "The code of the journal must be unique per company !".
As a hack - just rename Journal's names and codes for a while then install your module
I am having this error also when: I try to duplicate a journal with a code entry with 4 character. system try to change the code of the new journal by adding something like (copy) at the end of the code. Since length is limited a unique code cannot be created. As a result I see such an error.
You are getting this error because you are trying to create a new journal with already defined code. If you are duplicating the entry try changing the code first after duplicating revert it back to the original value.
If it is not the code of the journal it is code of the attached sequence or journal entry.
About This Community
This platform 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.Register
Odoo Training Center
Access to our E-learning platform and experience all Odoo Apps through learning videos, exercises and Quizz.Test it now
|Asked: 2/18/13, 6:19 AM|
|Seen: 5997 times|
|Last updated: 9/9/15, 7:51 AM|