odoo/odoo#200555
Created by Tanguy Quéguineur (taqu)
Merged
at 41bd71c7d96f8875441396f6e43a98bc5ebab671
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:16.0-opw-4593125-project_uninstall_share_wizard-taqu
- head
- 797a9406711402353891766821e8e9bf2fe6c12e
- merged
- 8 months ago by Fun Services, Xavier Bol (xbo)
| odoo/odoo | |
|---|---|
| 16.0 | #200555 |
| 17.0 | #200984 |
| saas-17.4 | #201675 |
| 18.0 | #201712 |
| saas-18.1 | #201827 |
| saas-18.2 | #201860 |
| saas-18.3 | |
| saas-18.4 | |
| 19.0 | |
| master | #201885 |
[FIX] project: make re-install possible if project shared
Issue
Re-installing Project is not possible if the Project Share Wizard has been used shortly before the module uninstallation.
Cause
The project_share_wizard_res_partner_rel table for the partner_ids field of the project.share.wizard is not dropped at uninstall (this is a known ORM limitation) and if it contains rows, restoring the foreign keys constraint for the project_share_wizard_id column will fail.
Solution
Ensure the table is empty after uninstall.
Steps to reproduce
- Project Kanban View > 3 dots > Share
- Add a recipient and Send: this should add a row to the project_share_wizard_res_partner_rel table.
- Uninstall Project shortly after (before the row is deleted by the auto-vacuum).
- Try to re-install Project:
The operation cannot be completed: another model requires the record being deleted. If possible, archive it instead.
Model: Unknown (unknown)
Constraint: project_share_wizard_res_partner_r_project_share_wizard_id_fkey