[FIX] account, base: prevent merging account.account
Steps to reproduce: - Enable the merge on account.account in data cleaning APP (in debug) - Create an invoice with a receivable account = A - Define a lock date after the invoice date - Go to chart of accounts - Select your receivable = A et receivable = B - Action = Merge accounts where B is the MASTER Issue: Upon revisiting the customer invoice: Notice that the journal items have been updated. Solution: We simply prevent ~~the use of a nuclear weapon~~ the merge of `account.account` as there other possibilities less dangerous such as multi-edit + archiving We also prevent the merge of `res.partner` if this one is used in hashed entries oe:https://github.com/odoo/enterprise/pull/47053 opw-3389157 closes odoo/odoo#134634 Related: odoo/enterprise#47053 Signed-off-by:William André (wan) <wan@odoo.com>
Showing
- addons/account/models/account_account.py 3 additions, 0 deletionsaddons/account/models/account_account.py
- addons/account/models/partner.py 8 additions, 0 deletionsaddons/account/models/partner.py
- odoo/addons/base/wizard/base_partner_merge.py 0 additions, 4 deletionsodoo/addons/base/wizard/base_partner_merge.py
Loading