Monday, November 2, 2020
1 change · master
Enhancements to existing features
Duplicating accounting journals now creates safer, company-unique journal codes instead of risking duplicate codes. This helps prevent duplicate accounting entry names and makes journal copying more reliable for finance teams.
Original PR description
Before that, even though the code contained something about it, the duplication of account.journal objects handled their code field pretty poorly (as it was trimmed to 5 characters), leading to situations where journals could have the same code, leading to possibility for account moves to have the same name. This commit improves the SQL constraint testing journal codes so that they must now be unique per company. We also recompute the code in a more advanced way so that journal duplications works as smoothly as possible. Task 2346404