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

[16.0][MIG] database_cleanup: Migration to 16.0 #2473

Closed
wants to merge 51 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
51 commits
Select commit Hold shift + click to select a range
610e99e
[ADD] Database cleanup module
Jan 28, 2014
e93689c
remove relations when purging models
guewen Feb 3, 2014
faca9c2
[FIX] Don't remove uid field from wkf_instance, which is written in
Feb 8, 2014
d67e7a6
[CHG] Migration to 8.0
anthony-muschang Dec 11, 2014
3cc6d8a
[IMP] hide unnecessary buttons in wizard
hbrunn Apr 28, 2015
32eb132
Missing templates and translations added
sysadminmatmoz Aug 11, 2015
89c7551
[ADD] allow to clean up menus
hbrunn Aug 28, 2015
248e3c6
[IMP] allow to select lines to purge in a tree view
hbrunn Jul 17, 2015
ea13b37
[ADD] migrate database_cleanup
hbrunn Jun 29, 2016
1cce1e1
[RFR] Explicit access rights so that tests can run
StefanRijnhart Aug 9, 2016
201e1a9
[FIX] purge uninstalled uninstallable modules instead of deleting
hbrunn Aug 2, 2016
e3cd1c2
OCA Transbot updated translations from Transifex
oca-transbot Oct 5, 2015
cd46dcd
[IMP] call the button handler to also purge reverse dependencies
hbrunn Sep 15, 2016
18583de
[FIX] don't crash if an xmlid refers to a nonexisting field (#559)
hbrunn Sep 26, 2016
99e876c
[FIX] clean database menus was proposing good menus to purge (#562)
JordiBForgeFlow Sep 28, 2016
2138bc3
fixes #587
florian-dacosta Nov 1, 2016
381df62
[FIX] database_cleanup: Fix test (#612)
moylop260 Nov 22, 2016
34d6744
[9.0][FIX] database_cleanup: Isolate build (#719)
lasley Feb 7, 2017
6eb8fd6
[ADD] allow creating missing indexes and purging properties (#736)
hbrunn Apr 19, 2017
7b6d3d7
[MIG] database_cleanup: Migration to version 10.0
eantones Jun 21, 2017
dd7f634
[FIX] really uninstall modules and avoid a crash on cached data
hbrunn Aug 1, 2017
b67d4c3
[ADD] [database_cleanup] migrate to 11.0
hbrunn Oct 3, 2017
2939208
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
1dd1553
database_cleanup_fix_runbot_links
fanha99 Jul 20, 2018
72837b9
Global pylint cleanup
simahawk Sep 3, 2018
2bc3ef7
[FIX] don't destroy values when there are empty default properties
hbrunn Feb 11, 2019
25e437e
[FIX] show the redundant property's res_id, not the default one's
hbrunn Feb 11, 2019
cf6ccd1
[IMP] don't break on properties pointing to unknown models
hbrunn Feb 14, 2019
3997b8f
[MIG] database_cleanup: migration to 12.0
mart-e Oct 26, 2018
f1d6052
[FIX] database_cleanup: exclude password fields
mart-e Apr 8, 2019
42b32d6
[I18N] database_cleanup: reflect changes to en.po
mart-e Apr 16, 2019
38009ac
[FIX] database_cleanup: filter on many2many fields
mart-e May 6, 2019
f737865
[FIX] database_cleanup: ignore to_buy modules
mart-e May 9, 2019
e273749
[UPD] Update database_cleanup.pot
oca-travis May 31, 2019
cd74570
Update translation files
oca-transbot Jun 16, 2019
d78db9e
[FIX][#1580]database_cleanup: Skip studio_customization module skippe…
bizzappdev Aug 5, 2019
de527c1
[UPD] Update database_cleanup.pot
oca-travis Aug 11, 2019
03dd378
database_cleanup 12.0.1.0.1
OCA-git-bot Aug 11, 2019
481f4a9
Update translation files
oca-transbot Aug 26, 2019
86e9c94
Translated using Weblate (Portuguese (Brazil))
Aug 30, 2019
42b647e
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 31, 2019
f5bcc49
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
02807ea
[IMP] database_cleanup: black, isort, prettier
StephaneMangin Jan 12, 2021
ff2e6e3
[MIG] database_cleanup: Migration to 14.0
StephaneMangin Jan 12, 2021
211bc1e
fixup! [MIG] database_cleanup: Migration to 14.0
thomaspaulb Aug 17, 2022
a26d0d4
[UPD] Update database_cleanup.pot
Aug 30, 2022
e2d6e7c
[UPD] README.rst
OCA-git-bot Aug 30, 2022
8b2875e
Translated using Weblate (Spanish (Argentina))
ibuioli Sep 2, 2022
15ffd6e
Translated using Weblate (Italian)
francesco-ooops Sep 15, 2022
b46c34f
[MIG] database_cleanup: Migration to 16.0
JoelZilli Nov 24, 2022
923956b
[FIX] database_cleanup: unused code + wrong modules clean
JoelZilli May 3, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
97 changes: 97 additions & 0 deletions database_cleanup/README.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
================
Database cleanup
================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! This file is generated by oca-gen-addon-readme !!
!! changes will be overwritten. !!
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
.. |badge1| image:: https://img.shields.io/badge/maturity-Beta-yellow.png
:target: https://odoo-community.org/page/development-status
:alt: Beta
.. |badge2| image:: https://img.shields.io/badge/licence-AGPL--3-blue.png
:target: http://www.gnu.org/licenses/agpl-3.0-standalone.html
:alt: License: AGPL-3
.. |badge3| image:: https://img.shields.io/badge/github-OCA%2Fserver--tools-lightgray.png?logo=github
:target: https://github.com/OCA/server-tools/tree/14.0/database_cleanup
:alt: OCA/server-tools
.. |badge4| image:: https://img.shields.io/badge/weblate-Translate%20me-F47D42.png
:target: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-database_cleanup
:alt: Translate me on Weblate
.. |badge5| image:: https://img.shields.io/badge/runbot-Try%20me-875A7B.png
:target: https://runbot.odoo-community.org/runbot/149/14.0
:alt: Try me on Runbot

|badge1| |badge2| |badge3| |badge4| |badge5|

Clean your Odoo database from remnants of modules, models, columns and
tables left by uninstalled modules (prior to 7.0) or a homebrew database
upgrade to a new major version of Odoo.

Caution! This module is potentially harmful and can *easily* destroy the
integrity of your data. Do not use if you are not entirely comfortable
with the technical details of the Odoo data model of *all* the modules
that have ever been installed on your database, and do not purge any module,
model, column or table if you do not know exactly what you are doing.

**Table of contents**

.. contents::
:local:

Usage
=====

After installation of this module, go to the Settings menu -> Technical ->
Database cleanup. This menu is only available to members of the *Access Rights*
group. Go through the modules, models, columns and tables
entries under this menu (in that order) and find out if there is orphaned data
in your database. You can either delete entries by line, or sweep all entries
in one big step (if you are *really* confident).

.. image:: https://odoo-community.org/website/image/ir.attachment/5784_f2813bd/datas
:alt: Try me on Runbot
:target: https://runbot.odoo-community.org/runbot/149/11.0

Bug Tracker
===========

Bugs are tracked on `GitHub Issues <https://github.com/OCA/server-tools/issues>`_.
In case of trouble, please check there if your issue has already been reported.
If you spotted it first, help us smashing it by providing a detailed and welcomed
`feedback <https://github.com/OCA/server-tools/issues/new?body=module:%20database_cleanup%0Aversion:%2014.0%0A%0A**Steps%20to%20reproduce**%0A-%20...%0A%0A**Current%20behavior**%0A%0A**Expected%20behavior**>`_.

Do not contact contributors directly about support or help with technical issues.

Credits
=======

Authors
~~~~~~~

* Therp BV

Contributors
~~~~~~~~~~~~

* Stefan Rijnhart <[email protected]>
* Holger Brunn <[email protected]>
* Stéphane Mangin <[email protected]>

Maintainers
~~~~~~~~~~~

This module is maintained by the OCA.

.. image:: https://odoo-community.org/logo.png
:alt: Odoo Community Association
:target: https://odoo-community.org

OCA, or the Odoo Community Association, is a nonprofit organization whose
mission is to support the collaborative development of Odoo features and
promote its widespread use.

This module is part of the `OCA/server-tools <https://github.com/OCA/server-tools/tree/14.0/database_cleanup>`_ project on GitHub.

You are welcome to contribute. To learn how please visit https://odoo-community.org/page/Contribute.
3 changes: 3 additions & 0 deletions database_cleanup/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# Copyright 2014-2016 Therp BV <http://therp.nl>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
from . import models
26 changes: 26 additions & 0 deletions database_cleanup/__manifest__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright 2014-2016 Therp BV <http://therp.nl>
# Copyright 2021 Camptocamp SA <https://camptocamp.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl.html).
{
"name": "Database cleanup",
"version": "16.0.1.0.0",
"author": "Therp BV,Odoo Community Association (OCA)",
"website": "https://github.com/OCA/server-tools",
"depends": ["base"],
"license": "AGPL-3",
"category": "Tools",
"data": [
"views/purge_wizard.xml",
"views/purge_menus.xml",
"views/purge_modules.xml",
"views/purge_models.xml",
"views/purge_columns.xml",
"views/purge_tables.xml",
"views/purge_data.xml",
"views/create_indexes.xml",
"views/purge_properties.xml",
"views/menu.xml",
"security/ir.model.access.csv",
],
"installable": True,
}
Loading
Loading