Commit Graph

66 Commits (1040bf6cb31bd39de02a0de0973be7892f40b64a)

Author SHA1 Message Date
Florian da Costa 5176e76758 fixes #587 2023-02-09 12:09:19 +02:00
Jordi Ballester Alomar 1ffc49d76f [FIX] clean database menus was proposing good menus to purge (#562) 2023-02-09 12:09:19 +02:00
Holger Brunn 1c096ff1dc [FIX] don't crash if an xmlid refers to a nonexisting field (#559) 2023-02-09 12:09:19 +02:00
Holger Brunn b1cd6ff778 [IMP] call the button handler to also purge reverse dependencies 2023-02-09 12:09:19 +02:00
OCA Transbot 3ffd9ddd0c OCA Transbot updated translations from Transifex 2023-02-09 12:09:19 +02:00
Holger Brunn f83440c513 [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-02-09 12:09:19 +02:00
Stefan Rijnhart b3503b94bb [RFR] Explicit access rights so that tests can run
Fixes #505
2023-02-09 12:09:19 +02:00
Holger Brunn 316680ada2 [ADD] migrate database_cleanup
[ADD] test purging modules

[ADD] test purging tables
2023-02-09 12:09:19 +02:00
Holger Brunn de3f208f64 [IMP] allow to select lines to purge in a tree view
[IMP] adaptto upstream changes
2023-02-09 12:09:19 +02:00
Holger Brunn 419988f770 [ADD] allow to clean up menus 2023-02-09 12:09:19 +02:00
Matjaž Mozetič 42abb89439 Missing templates and translations added 2023-02-09 12:09:19 +02:00
Holger Brunn 9886bd244c [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-02-09 12:09:19 +02:00
Anthony Muschang b0f17049b3 [CHG] Migration to 8.0
[CHG] database_cleanup: move description to README.rst
2023-02-09 12:09:19 +02:00
Stefan Rijnhart c66ca7a3a7 [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-02-09 12:09:19 +02:00
Guewen Baconnier d468ae472f 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-02-09 12:09:19 +02:00
Stefan Rijnhart 41a7e46b7e [ADD] Database cleanup module 2023-02-09 12:09:19 +02:00