Commit Graph

1364 Commits (2afed18401c912cd1c6a83be329fea6274b01760)

Author SHA1 Message Date
Alexandre Fayolle 2afed18401
set database_cleanup as rebel module 2023-10-30 13:36:05 -04:00
Joel Zilli a3d4ba0bb6
[FIX] database_cleanup: unused code + wrong modules clean 2023-10-30 13:35:32 -04:00
Joel Zilli 6be193348a
[MIG] database_cleanup: Migration to 16.0 2023-10-30 13:35:32 -04:00
Francesco Foresti 07e00cf1e0
Translated using Weblate (Italian)
Currently translated at 20.2% (15 of 74 strings)

Translation: server-tools-14.0/server-tools-14.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-database_cleanup/it/
2023-10-30 13:35:32 -04:00
Ignacio Buioli 81d775272b
Translated using Weblate (Spanish (Argentina))
Currently translated at 100.0% (74 of 74 strings)

Translation: server-tools-14.0/server-tools-14.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-14-0/server-tools-14-0-database_cleanup/es_AR/
2023-10-30 13:35:31 -04:00
OCA-git-bot b3849b3d8c
[UPD] README.rst 2023-10-30 13:35:31 -04:00
oca-ci fdc1ea5058
[UPD] Update database_cleanup.pot 2023-10-30 13:35:31 -04:00
Tom Blauwendraat 96e244055f
fixup! [MIG] database_cleanup: Migration to 14.0 2023-10-30 13:35:31 -04:00
Stephane Mangin 7d8967fe32
[MIG] database_cleanup: Migration to 14.0 2023-10-30 13:35:31 -04:00
Stephane Mangin d1acfa4b4a
[IMP] database_cleanup: black, isort, prettier 2023-10-30 13:35:30 -04:00
黎伟杰 5d0be1e42e
Translated using Weblate (Chinese (Simplified))
Currently translated at 100.0% (74 of 74 strings)

Translation: server-tools-12.0/server-tools-12.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-database_cleanup/zh_CN/
2023-10-30 13:35:30 -04:00
黎伟杰 d575a5aff4
Translated using Weblate (Chinese (Simplified))
Currently translated at 51.4% (38 of 74 strings)

Translation: server-tools-12.0/server-tools-12.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-database_cleanup/zh_CN/
2023-10-30 13:35:30 -04:00
Rodrigo Macedo e04079efc2
Translated using Weblate (Portuguese (Brazil))
Currently translated at 100.0% (74 of 74 strings)

Translation: server-tools-12.0/server-tools-12.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-database_cleanup/pt_BR/
2023-10-30 13:35:30 -04:00
OCA Transbot b0f5f988e2
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-12.0/server-tools-12.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-database_cleanup/
2023-10-30 13:35:30 -04:00
OCA-git-bot c82ba39700
database_cleanup 12.0.1.0.1 2023-10-30 13:35:29 -04:00
oca-travis 60b25c1927
[UPD] Update database_cleanup.pot 2023-10-30 13:35:29 -04:00
Ruchir Shukla 9636bdb2a9
[FIX][#1580]database_cleanup: Skip studio_customization module skipped for uninstalling 2023-10-30 13:35:29 -04:00
OCA Transbot c04fcba468
Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-12.0/server-tools-12.0-database_cleanup
Translate-URL: https://translation.odoo-community.org/projects/server-tools-12-0/server-tools-12-0-database_cleanup/
2023-10-30 13:35:29 -04:00
oca-travis 19352c6f8c
[UPD] Update database_cleanup.pot 2023-10-30 13:35:28 -04:00
Martin Trigaux 0daeb7a268
[FIX] database_cleanup: ignore to_buy modules
Since 12.0, some virtual modules are created as an incentive to buy enterprise
Hide installation warning
2023-10-30 13:35:28 -04:00
Martin Trigaux 13c2a780b5
[FIX] database_cleanup: filter on many2many fields
Following odoo/odoo@54238c88e8 a Many2many may have no relation
This avoids having a None record in the list (which is problematic with the
NOT IN clause)
https://wiki.postgresql.org/wiki/Don't_Do_This#Don.27t_use_NOT_IN
2023-10-30 13:35:28 -04:00
Martin Trigaux f181991bed
[I18N] database_cleanup: reflect changes to en.po
To match the new database_cleanup.pot
2023-10-30 13:35:28 -04:00
Martin Trigaux 03b6874a51
[FIX] database_cleanup: exclude password fields
cf discussion on OCA/server-tools#1408
2023-10-30 13:35:28 -04:00
Martin Trigaux 6278702ed3
[MIG] database_cleanup: migration to 12.0
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>
2023-10-30 13:35:27 -04:00
Holger Brunn 20957e1ad3
[IMP] don't break on properties pointing to unknown models 2023-10-30 13:35:27 -04:00
Holger Brunn 606e679c8b
[FIX] show the redundant property's res_id, not the default one's 2023-10-30 13:35:27 -04:00
Holger Brunn 5eea6fe685
[FIX] don't destroy values when there are empty default properties 2023-10-30 13:35:27 -04:00
Simone Orsi 86948490e5
Global pylint cleanup 2023-10-30 13:35:26 -04:00
Fanha Giang 1174199154
database_cleanup_fix_runbot_links 2023-10-30 13:35:26 -04:00
OCA Transbot 82364c8b80
OCA Transbot updated translations from Transifex 2023-10-30 13:35:26 -04:00
Holger Brunn 28ceb7c57e
[ADD] [database_cleanup] migrate to 11.0 2023-10-30 13:35:26 -04:00
Holger Brunn 8d03304f64
[FIX] really uninstall modules and avoid a crash on cached data
[FIX] don't try to uninstall uninstalled modules

[DEL] weird code

[FIX] actually cleanup where we can
2023-10-30 13:35:26 -04:00
Eric Antones 73cb3aa9d2
[MIG] database_cleanup: Migration to version 10.0
Using new base model inheritance.
2023-10-30 13:35:25 -04:00
Holger Brunn 1af5b66cf6
[ADD] allow creating missing indexes and purging properties (#736)
* [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
2023-10-30 13:35:25 -04:00
Dave Lasley 5dd1e9b409
[9.0][FIX] database_cleanup: Isolate build (#719)
* [FIX] database_cleanup: Isolate build
* Isolate `database_cleanup` into its own build in Travis file to fix #689

* [FIX] database_cleanup: Remove KeyError assertion
* Remove KeyError assertion in tests due to PR in comment being merged
2023-10-30 13:35:25 -04:00
Moises Lopez - https://www.vauxoo.com/ 808cdaa968
[FIX] database_cleanup: Fix test (#612) 2023-10-30 13:35:25 -04:00
Florian da Costa 3953779836
fixes #587 2023-10-30 13:35:25 -04:00
Jordi Ballester Alomar 3778616fd5
[FIX] clean database menus was proposing good menus to purge (#562) 2023-10-30 13:35:24 -04:00
Holger Brunn e3b8fda908
[FIX] don't crash if an xmlid refers to a nonexisting field (#559) 2023-10-30 13:35:24 -04:00
Holger Brunn 5bba296582
[IMP] call the button handler to also purge reverse dependencies 2023-10-30 13:35:24 -04:00
OCA Transbot 39d97e032d
OCA Transbot updated translations from Transifex 2023-10-30 13:35:24 -04:00
Holger Brunn 180e598e2a
[FIX] purge uninstalled uninstallable modules instead of deleting
[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
2023-10-30 13:35:23 -04:00
Stefan Rijnhart 6e27c304dc
[RFR] Explicit access rights so that tests can run
Fixes #505
2023-10-30 13:35:23 -04:00
Holger Brunn 617a991b88
[ADD] migrate database_cleanup
[ADD] test purging modules

[ADD] test purging tables
2023-10-30 13:35:23 -04:00
Holger Brunn cf5785b385
[IMP] allow to select lines to purge in a tree view
[IMP] adaptto upstream changes
2023-10-30 13:35:23 -04:00
Holger Brunn 5b31147273
[ADD] allow to clean up menus 2023-10-30 13:35:23 -04:00
Matjaž Mozetič b4e1e4d781
Missing templates and translations added 2023-10-30 13:35:22 -04:00
Holger Brunn c1406ebed2
[IMP] hide unnecessary buttons in wizard
[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
2023-10-30 13:35:22 -04:00
Anthony Muschang e5e76d0e94
[CHG] Migration to 8.0
[CHG] database_cleanup: move description to README.rst
2023-10-30 13:35:22 -04:00
Stefan Rijnhart b8e24140f7
[FIX] Don't remove uid field from wkf_instance, which is written in
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
2023-10-30 13:35:22 -04:00