Daily updates from Odoo
Monday, March 26, 2018
1 change · master
Resolved issues and error corrections
This fixes a crash that could happen after uninstalling a module used by custom one-to-many or related fields. Odoo now automatically cleans up those dependent custom fields in the background, helping keep the system stable after module removals.
Original PR description
Before this revision: * Install a module, for this example we'll use `project` * Create a o2m field or a related field whose inverse is a field from the `project` module. * Uninstall the `project` module. Result -> BOOM! The registry can't be reloaded because it can't find the inverse field of our custom field, ayayay!! After this revision, this shouldn't break the registry anymore because we create two m2o fields which will trigger cascade deletes for both o2m and related fields upon the deletion of the inverse field, these fields are both computed stored fields and they're not shown to the end user, this is all done "under the rug". Task-ID: 58808 Description of the issue/feature this PR addresses: Current behavior before PR: Desired behavior after PR is merged: -- I confirm I have signed the CLA and read the PR guidelines at www.odoo.com/submit-pr