Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
65 commits
Select commit Hold shift + click to select a range
ca79d6e
[ADD] Database cleanup module
Jan 28, 2014
7c4979b
remove relations when purging models
Feb 3, 2014
45cb718
[FIX] Don't remove uid field from wkf_instance, which is written in
Feb 8, 2014
7499dbe
[CHG] Migration to 8.0
anthony-muschang Dec 11, 2014
7f12285
[IMP] hide unnecessary buttons in wizard
hbrunn Apr 28, 2015
dae10e0
Missing templates and translations added
sysadminmatmoz Aug 11, 2015
de18a4b
[ADD] allow to clean up menus
hbrunn Aug 28, 2015
bd9b860
[IMP] allow to select lines to purge in a tree view
hbrunn Jul 17, 2015
24c919a
[ADD] migrate database_cleanup
hbrunn Jun 29, 2016
1803885
[RFR] Explicit access rights so that tests can run
StefanRijnhart Aug 9, 2016
ddbcf91
[FIX] purge uninstalled uninstallable modules instead of deleting
hbrunn Aug 2, 2016
8ee50e5
OCA Transbot updated translations from Transifex
oca-transbot Oct 5, 2015
4632ea8
[IMP] call the button handler to also purge reverse dependencies
hbrunn Sep 15, 2016
aecbb72
[FIX] don't crash if an xmlid refers to a nonexisting field (#559)
hbrunn Sep 26, 2016
225e048
[FIX] clean database menus was proposing good menus to purge (#562)
JordiBForgeFlow Sep 28, 2016
40fcadc
fixes #587
florian-dacosta Nov 1, 2016
8111f46
[FIX] database_cleanup: Fix test (#612)
moylop260 Nov 22, 2016
52e6249
[9.0][FIX] database_cleanup: Isolate build (#719)
lasley Feb 7, 2017
634fda9
[ADD] allow creating missing indexes and purging properties (#736)
hbrunn Apr 19, 2017
7a6749c
[MIG] database_cleanup: Migration to version 10.0
eantones Jun 21, 2017
febabb7
[FIX] really uninstall modules and avoid a crash on cached data
hbrunn Aug 1, 2017
2a9690c
[ADD] [database_cleanup] migrate to 11.0
hbrunn Oct 3, 2017
65cca57
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
fe1e959
database_cleanup_fix_runbot_links
fanha99 Jul 20, 2018
62f544a
Global pylint cleanup
simahawk Sep 3, 2018
f28e938
[FIX] don't destroy values when there are empty default properties
hbrunn Feb 11, 2019
20ecb61
[FIX] show the redundant property's res_id, not the default one's
hbrunn Feb 11, 2019
5c7f2c0
[IMP] don't break on properties pointing to unknown models
hbrunn Feb 14, 2019
275584c
[MIG] database_cleanup: migration to 12.0
mart-e Oct 26, 2018
8947477
[FIX] database_cleanup: exclude password fields
mart-e Apr 8, 2019
49f562b
[I18N] database_cleanup: reflect changes to en.po
mart-e Apr 16, 2019
b0fa90f
[FIX] database_cleanup: filter on many2many fields
mart-e May 6, 2019
fbc103e
[FIX] database_cleanup: ignore to_buy modules
mart-e May 9, 2019
2c4261b
[UPD] Update database_cleanup.pot
oca-travis May 31, 2019
9253acd
Update translation files
oca-transbot Jun 16, 2019
4b0578c
[FIX][#1580]database_cleanup: Skip studio_customization module skippe…
bizzappdev Aug 5, 2019
7105b8f
[UPD] Update database_cleanup.pot
oca-travis Aug 11, 2019
4b9ddf4
database_cleanup 12.0.1.0.1
OCA-git-bot Aug 11, 2019
dea6bdf
Update translation files
oca-transbot Aug 26, 2019
de7b640
Translated using Weblate (Portuguese (Brazil))
Aug 30, 2019
c2bbc7b
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 31, 2019
6bb0292
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
8a13bab
[FIX][12.0] database_cleanup: Mute logger on tests
etobella Feb 20, 2020
3835c1b
database_cleanup 12.0.1.0.2
OCA-git-bot Feb 20, 2020
f249169
[FIX] database_cleanup: only uninstall installed modules
MiquelRForgeFlow Mar 16, 2020
af178ae
[UPD] Update database_cleanup.pot
oca-travis Mar 17, 2020
26cdd30
Update translation files
oca-transbot Mar 17, 2020
f3e0cc3
[IMP] purge uninstalled unavailable modules in bulk
hbrunn Jul 17, 2018
79330cd
[ADD] test more cases for modules, refactor test code for that a bit
hbrunn Mar 31, 2020
0ecfe6b
[UPD] Update database_cleanup.pot
oca-travis Apr 4, 2020
d60e7d7
database_cleanup 12.0.1.0.3
OCA-git-bot Apr 4, 2020
d4dc51a
Update translation files
oca-transbot Apr 4, 2020
4ce624c
[FIX] unlink cronjobs for the model before purging it
hbrunn Apr 23, 2020
5afc9af
[UPD] Update database_cleanup.pot
oca-travis May 7, 2020
d01af19
database_cleanup 12.0.1.0.4
OCA-git-bot May 7, 2020
69e0f75
Update translation files
oca-transbot May 7, 2020
379cf56
[IMP] database_cleanup: black, isort, prettier
Rad0van Jan 12, 2021
d251c58
[MIG] database_cleanup: Migration to 13.0
Rad0van Jan 12, 2021
f089b6e
[UPD] Update database_cleanup.pot
oca-travis Jan 26, 2021
3b767a7
[UPD] Update database_cleanup.pot
oca-travis Nov 26, 2021
982da81
Update translation files
oca-transbot Nov 26, 2021
e61db47
Translated using Weblate (Spanish (Argentina))
ibuioli Mar 27, 2022
b2f7605
[IMP] database_cleanup: black, isort, prettier
May 4, 2022
d89c9cf
[MIG] database_cleanup: Migration to 14.0
Jan 12, 2021
130eb48
[MIG] database_cleanup: Migration to 15.0
May 4, 2022
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 @@
===================
Base Technical User
===================

.. !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!! 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/14.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 <stefan@opener.amsterdam>
* Holger Brunn <hbrunn@therp.nl>
* Stéphane Mangin <stephane.mangin@camptocamp.com>

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/base_technical_user>`_ 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": "15.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