Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[15.0][FIX] dms: Improve the unlink method in base to avoid errors #289

Merged
merged 1 commit into from
Feb 24, 2024

Conversation

victoralmau
Copy link
Member

@victoralmau victoralmau commented Jan 25, 2024

Related to: #189

In the uninstall process of dms, checks were made that prevented the removal of fields and models being deleted, also causing the dms_file and dms_directory tables to continue to exist.

Steps to reproduce the error before:

  • Install dms
  • Uninstall dms
  • The dms.file and dms.directory models still exist.
  • The tables dms_file and dms_directory in the database still exist.

@Tecnativa

@pedrobaeza pedrobaeza added this to the 15.0 milestone Jan 27, 2024
@pedrobaeza
Copy link
Member

I don't get the relation between the problem and this patch.

In the uninstall process of dms, checks were made that prevented the
removal of fields and models being deleted, also causing the dms_file
and dms_directory tables to continue to exist.
@victoralmau
Copy link
Member Author

With this change when the module is uninstalled and ir.* model records are deleted (ir.model.fields for example) this code will not be executed, solving the problem.

Before this change and with the steps to reproduce the problem indicated, you can verify that the dms_file and dms_directory tables were not deleted and the dms.file and dms.directory models exist.

Copy link
Member

@pedrobaeza pedrobaeza left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/ocabot merge patch

@OCA-git-bot
Copy link
Contributor

This PR looks fantastic, let's merge it!
Prepared branch 15.0-ocabot-merge-pr-289-by-pedrobaeza-bump-patch, awaiting test results.

@OCA-git-bot OCA-git-bot merged commit 5b6482c into OCA:15.0 Feb 24, 2024
7 checks passed
@OCA-git-bot
Copy link
Contributor

Congratulations, your PR was merged at 4bff400. Thanks a lot for contributing to OCA. ❤️

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants