Monday, July 10, 2023
1 change · master
New functionality added to Odoo
Analytic accounts can no longer share the same name within the same analytic plan, reducing confusion in reporting and planning. Default project-created accounts are now given unique names automatically to avoid conflicts.
Original PR description
Before it is added Two analytic accounts in the same analytic plan could have the same name. What does it do Add a constraint on the name so that two analytic account in the same analytic plan cannot have the same name. How does it work Using api.constraint decorator, read the analytic account names in the same analytic plan. Then, compare the names to the one the user wants to set. Raise an error if on matches. task-3414535 --- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr