odoo/odoo#206180
Created by fw-bot
Merged
at b7b4ff59631172caa4b3651ae536c665156d615e
Statuses:
- legal/cla: Contributor License Agreement check
- ci/runbot: Odoo Test Suite
- ci/upgrade_enterprise: Test upgrades for enterprise master
- ci/template: Contact runbot team on discord for help.
- ci/style: Optional style check. Ignore it only if strictly necessary.
- ci/security: Required security check. Can only be ignored by security team.
- label
- odoo-dev:saas-18.1-18.0-opw-4669340-archived_bank_account_not_deleted-gute-425610-fw
- head
- e9d5700ce80fbdad9bdbbb0bfaf8b3d7eddc1d33
- merged
- 5 months ago by Guillaume Teboul-Tornezy (gute)
odoo/odoo | |
---|---|
18.0 | #203474 |
saas-18.1 | #206180 |
saas-18.2 | #206907 |
saas-18.3 | |
saas-18.4 | |
19.0 | |
master | #206913 |
[FW][FIX] base: introduce user error for archived bank account
Commit ebb09234e6444576e7e934f53de1d23a0d9760d2 made it so that bank account are archived instead of deleted meaning that they are never deleted in the DB.
If a user tries to create a new bank account for the same partner with the same account number, the following validation error is raised:
"The operation cannot be completed: The combination Account Number/Partner must be unique."
This commit introduces a new UserError when a user attempts to create an account that was previously archived. It also updates the message in the chatter from "deleted" to "archived."
I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr
Forward-Port-Of: #203474