Commit Graph

1350 Commits (c82ba397007eae536ca81a38a95f1841f0624d8f)

Author SHA1 Message Date
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
Guewen Baconnier 801a5d41c9
remove relations when purging models
avoid ''NoneType' object has no attribute 'exists'' error when purging models
fix my change guewen.baconnier@camptocamp.com-20140203103254-v1mzu2uib047xb9h, wrong lines replaced...
2023-10-30 13:35:22 -04:00
Stefan Rijnhart cad5ae1275
[ADD] Database cleanup module 2023-10-30 13:35:21 -04:00
mymage aa34fd1fad Translated using Weblate (Italian)
Currently translated at 36.3% (32 of 88 strings)

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/it/
2023-10-29 08:34:07 +00:00
oca-git-bot 04cb8b6dac [IMP] update dotfiles 2023-10-27 22:48:41 +02:00
OCA-git-bot 3a5305184a [BOT] post-merge updates 2023-10-17 14:39:01 +00:00
OCA-git-bot e22a09b135 Merge PR #2726 into 16.0
Signed-off-by bguillot
2023-10-17 14:31:11 +00:00
mymage 0b6af13008 Translated using Weblate (Italian)
Currently translated at 81.2% (156 of 192 strings)

Translation: server-tools-16.0/server-tools-16.0-excel_import_export
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-excel_import_export/it/
2023-10-12 09:40:21 +00:00
Florian da Costa 022259bc56 [FIX] attachment queue job description 2023-10-10 10:09:19 +02:00
Weblate 3eaafd9cd4 Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-auditlog
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-auditlog/
2023-10-10 00:52:33 +00:00
Weblate 59fcbc268f Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-rpc_helper
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-rpc_helper/
2023-10-09 21:33:29 +00:00
Weblate 22962754ec Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-scheduler_error_mailer
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-scheduler_error_mailer/
2023-10-09 20:27:15 +00:00
Weblate c020c4810c Update translation files
Updated by "Update PO files to match POT (msgmerge)" hook in Weblate.

Translation: server-tools-16.0/server-tools-16.0-attachment_unindex_content
Translate-URL: https://translation.odoo-community.org/projects/server-tools-16-0/server-tools-16-0-attachment_unindex_content/
2023-10-09 19:28:52 +00:00
OCA-git-bot 88b0140db8 [BOT] post-merge updates 2023-10-09 13:58:42 +00:00
OCA-git-bot bb0b8e5387 Merge PR #2661 into 16.0
Signed-off-by bguillot
2023-10-09 13:48:43 +00:00