Commit Graph

15 Commits (3778616fd53c99653274ce2d60b40326b19848d4)

Author SHA1 Message Date
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