Skip to content

[19.0][MIG] database_cleanup: Migration to 19.0 - #3454

Closed
nicomacr wants to merge 101 commits into
OCA:19.0from
adhoc-dev:19.0-mig-database_cleanup
Closed

nicomacr wants to merge 101 commits into
OCA:19.0from
adhoc-dev:19.0-mig-database_cleanup

Conversation

@nicomacr

Copy link
Copy Markdown
Contributor

No description provided.

Stefan Rijnhart and others added 30 commits November 26, 2025 08:28
avoid ''NoneType' object has no attribute 'exists'' error when purging models
fix my change guewen.baconnier@camptocamp.com-20140203103254-v1mzu2uib047xb9h, wrong lines replaced...
    raw SQL query (but never read afterwards). Workaround for
    lp:1277899

[FIX] Preserve dangling workflow table which is in use

[RFR] Group models per table when detecting columns to purge
      to prevent problems with models sharing the same table

[ADD] Allow purging of dangling data entries

[FIX] Data purging now working

[IMP] Docstrings

[FIX] Label
[FIX] Catch attempt to unlink field from nonexisting model

[RFR] Flake8
[CHG] database_cleanup: move description to README.rst
[IMP] order wizard lines by name

[IMP] deal with modules whose models can't be loaded

[IMP] double quotes for docstring

[FIX] use exists query instead of huge in list

[IMP] hide unnecessary buttons in wizard II

[IMP] readability

[FIX] cope with purging nonexisting models
[ADD] test purging modules

[ADD] test purging tables
[FIX] database_cleanup reloads the registry

which has weird side effects during testing. Take care
database_cleanup's tests don't mess up the following tests
* [FIX] database_cleanup: Isolate build
* Isolate `database_cleanup` into its own build in Travis file to fix OCA#689

* [FIX] database_cleanup: Remove KeyError assertion
* Remove KeyError assertion in tests due to PR in comment being merged
* [ADD] allow creating missing indexes

* [FIX] tests; installation

* [ADD] allow purging properties

* [ADD] missing file

* [ADD] test purging properties

* [ADD] missing parent_id for menu entry

* [FIX] don't delete too many and wrong properties
Using new base model inheritance.
[FIX] don't try to uninstall uninstalled modules

[DEL] weird code

[FIX] actually cleanup where we can
Update version number
Use correct import
Update .pot to match new syntax
Adapt icon to fontawesome
Add models description
Rename field external id to new syntax <model>__<field>
legalsylvain and others added 21 commits November 26, 2025 08:28
Co-authored-by: Pedro M. Baeza <pedro.baeza@tecnativa.com>
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-17.0/server-tools-17.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-database_cleanup/
Currently translated at 100.0% (84 of 84 strings)

Translation: server-tools-17.0/server-tools-17.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-database_cleanup/it/
Currently translated at 100.0% (84 of 84 strings)

Translation: server-tools-17.0/server-tools-17.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-database_cleanup/zh_CN/
Currently translated at 100.0% (84 of 84 strings)

Translation: server-tools-17.0/server-tools-17.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-17-0/server-tools-17-0-database_cleanup/es_AR/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-database_cleanup/
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-18.0/server-tools-18.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-database_cleanup/
Currently translated at 100.0% (75 of 75 strings)

Translation: server-tools-18.0/server-tools-18.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-database_cleanup/it/
Currently translated at 100.0% (75 of 75 strings)

Translation: server-tools-18.0/server-tools-18.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-18-0/server-tools-18-0-database_cleanup/de/
Copilot AI review requested due to automatic review settings November 26, 2025 11:56

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR migrates the database_cleanup module from version 18.0 to 19.0, maintaining its functionality for cleaning orphaned database elements left by uninstalled modules or database upgrades.

Key changes:

  • Updated version number from 18.0 to 19.0 in manifest
  • Added comprehensive translation files for multiple languages (Croatian, Hebrew, Galician variants, French variants, Finnish, Persian, Basque, Estonian, Spanish Venezuelan)
  • Updated documentation references to version 19.0

Reviewed changes

Copilot reviewed 38 out of 115 changed files in this pull request and generated no comments.

File Description
database_cleanup/__manifest__.py Version updated to 19.0.1.0.0
database_cleanup/__init__.py Module initialization file added
database_cleanup/README.rst Documentation updated with 19.0 references
database_cleanup/i18n/*.po Translation files added for 10 different locales

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

You can also share your feedback on Copilot code review for a chance to win a $100 gift card. Take the survey.

@nicomacr
nicomacr force-pushed the 19.0-mig-database_cleanup branch 3 times, most recently from 89c752e to 1ea7a2e Compare November 26, 2025 12:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.