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

[FIX] database_cleanup: fix key on "Purge Menus" server action #4

Open
wants to merge 45 commits into
base: 14.0-mig-database_cleanup
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
45 commits
Select commit Hold shift + click to select a range
e3be029
[ADD] Database cleanup module
Jan 28, 2014
056ae57
remove relations when purging models
guewen Feb 3, 2014
8e4dad2
[FIX] Don't remove uid field from wkf_instance, which is written in
Feb 8, 2014
46af41d
[CHG] Migration to 8.0
anthony-muschang Dec 11, 2014
ea6c702
[IMP] hide unnecessary buttons in wizard
hbrunn Apr 28, 2015
ee712a3
Missing templates and translations added
sysadminmatmoz Aug 11, 2015
6e32d1d
[ADD] allow to clean up menus
hbrunn Aug 28, 2015
82a5d0a
[IMP] allow to select lines to purge in a tree view
hbrunn Jul 17, 2015
ded1e2a
[ADD] migrate database_cleanup
hbrunn Jun 29, 2016
796283b
[RFR] Explicit access rights so that tests can run
StefanRijnhart Aug 9, 2016
f5e5556
[FIX] purge uninstalled uninstallable modules instead of deleting
hbrunn Aug 2, 2016
a2a91f8
OCA Transbot updated translations from Transifex
oca-transbot Oct 5, 2015
4e9bdcd
[IMP] call the button handler to also purge reverse dependencies
hbrunn Sep 15, 2016
9f91de5
[FIX] don't crash if an xmlid refers to a nonexisting field (#559)
hbrunn Sep 26, 2016
148e787
[FIX] clean database menus was proposing good menus to purge (#562)
JordiBForgeFlow Sep 28, 2016
45806b5
fixes #587
florian-dacosta Nov 1, 2016
aad46f4
[FIX] database_cleanup: Fix test (#612)
moylop260 Nov 22, 2016
34a071e
[9.0][FIX] database_cleanup: Isolate build (#719)
lasley Feb 7, 2017
7a93883
[ADD] allow creating missing indexes and purging properties (#736)
hbrunn Apr 19, 2017
e15132b
[MIG] database_cleanup: Migration to version 10.0
eantones Jun 21, 2017
a29485e
[FIX] really uninstall modules and avoid a crash on cached data
hbrunn Aug 1, 2017
8370937
[ADD] [database_cleanup] migrate to 11.0
hbrunn Oct 3, 2017
31e60a4
OCA Transbot updated translations from Transifex
oca-transbot Mar 3, 2018
bbbaf4a
database_cleanup_fix_runbot_links
fanha99 Jul 20, 2018
4ad7114
Global pylint cleanup
simahawk Sep 3, 2018
a1a1c98
[FIX] don't destroy values when there are empty default properties
hbrunn Feb 11, 2019
1d8376e
[FIX] show the redundant property's res_id, not the default one's
hbrunn Feb 11, 2019
d183b13
[IMP] don't break on properties pointing to unknown models
hbrunn Feb 14, 2019
b573686
[MIG] database_cleanup: migration to 12.0
mart-e Oct 26, 2018
e4cdb85
[FIX] database_cleanup: exclude password fields
mart-e Apr 8, 2019
9a0c9fd
[I18N] database_cleanup: reflect changes to en.po
mart-e Apr 16, 2019
7ea8b20
[FIX] database_cleanup: filter on many2many fields
mart-e May 6, 2019
80a1171
[FIX] database_cleanup: ignore to_buy modules
mart-e May 9, 2019
d1fb373
[UPD] Update database_cleanup.pot
oca-travis May 31, 2019
24bd2bf
Update translation files
oca-transbot Jun 16, 2019
8828bc0
[FIX][#1580]database_cleanup: Skip studio_customization module skippe…
bizzappdev Aug 5, 2019
a8672e0
[UPD] Update database_cleanup.pot
oca-travis Aug 11, 2019
99550cb
database_cleanup 12.0.1.0.1
OCA-git-bot Aug 11, 2019
738d886
Update translation files
oca-transbot Aug 26, 2019
25e62ef
Translated using Weblate (Portuguese (Brazil))
Aug 30, 2019
b423eda
Translated using Weblate (Chinese (Simplified))
liweijie0812 Aug 31, 2019
320222e
Translated using Weblate (Chinese (Simplified))
liweijie0812 Sep 1, 2019
3074801
[IMP] database_cleanup: black, isort, prettier
StephaneMangin Jan 12, 2021
ad7211d
[MIG] database_cleanup: Migration to 14.0
StephaneMangin Jan 12, 2021
6066e97
[FIX] database_cleanup: wrong key on Purge Menus server action
Linekio Sep 30, 2021
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 <[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/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": "14.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