Commit Graph

29 Commits (250b670d2b11276da99ff5527fe664236dc1bae5)

Author SHA1 Message Date
augusto-weiss fbb5dc1fe7 [MIG] database_cleanup: Migration to 17.0 2024-01-16 12:28:59 -03:00
augusto-weiss d60ef91034 [IMP] database_cleanup: pre-commit execution 2024-01-10 16:14:55 -03:00
Miika Nissi 00db558690 [IMP] database_cleanup: Unlink with new cursor
Needed for purging payment providers which recompute module_state
2024-01-10 16:14:47 -03:00
Miika Nissi b06d4e2fdb [IMP] database_cleanup: Readability of modules to remove 2024-01-10 16:14:47 -03:00
Joel Zilli 13fc2abdb3 [FIX] database_cleanup: unused code + wrong modules clean 2024-01-10 16:14:47 -03:00
Joel Zilli 8a4f4b227c [MIG] database_cleanup: Migration to 16.0 2024-01-10 16:14:47 -03:00
Tom Blauwendraat 20815e6f8f fixup! [MIG] database_cleanup: Migration to 14.0 2024-01-10 16:14:47 -03:00
Stephane Mangin 960c2669e0 [MIG] database_cleanup: Migration to 14.0 2024-01-10 16:14:47 -03:00
Stephane Mangin ea9e1c0799 [IMP] database_cleanup: black, isort, prettier 2024-01-10 16:14:47 -03:00
Ruchir Shukla 04938bf63e [FIX][#1580]database_cleanup: Skip studio_customization module skipped for uninstalling 2024-01-10 16:14:47 -03:00
Martin Trigaux 841704c4a5 [FIX] database_cleanup: ignore to_buy modules
Since 12.0, some virtual modules are created as an incentive to buy enterprise
Hide installation warning
2024-01-10 16:14:47 -03:00
Martin Trigaux b2ab7d204e [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
2024-01-10 16:14:47 -03:00
Martin Trigaux 77a9abd777 [FIX] database_cleanup: exclude password fields
cf discussion on OCA/server-tools#1408
2024-01-10 16:14:47 -03:00
Martin Trigaux 021c7b1543 [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>
2024-01-10 16:14:47 -03:00
Holger Brunn 6378eaed22 [IMP] don't break on properties pointing to unknown models 2024-01-10 16:14:47 -03:00
Holger Brunn 2c7ac60c0f [FIX] show the redundant property's res_id, not the default one's 2024-01-10 16:14:47 -03:00
Holger Brunn 0926c08c63 [FIX] don't destroy values when there are empty default properties 2024-01-10 16:14:47 -03:00
Simone Orsi dcd6d728c0 Global pylint cleanup 2024-01-10 16:14:47 -03:00
Holger Brunn 35b727f17b [ADD] [database_cleanup] migrate to 11.0 2024-01-10 16:14:47 -03:00
Holger Brunn 2f83886cbe [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
2024-01-10 16:14:47 -03:00
Eric Antones 9998f90351 [MIG] database_cleanup: Migration to version 10.0
Using new base model inheritance.
2024-01-10 16:14:47 -03:00
Holger Brunn 935bcd4eac [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
2024-01-10 16:14:47 -03:00
Florian da Costa d7e1f5bd28 fixes #587 2024-01-10 16:14:47 -03:00
Jordi Ballester Alomar 3b764a1fa7 [FIX] clean database menus was proposing good menus to purge (#562) 2024-01-10 16:14:47 -03:00
Holger Brunn 9a3d22aa9f [FIX] don't crash if an xmlid refers to a nonexisting field (#559) 2024-01-10 16:14:47 -03:00
Holger Brunn e7decb535d [IMP] call the button handler to also purge reverse dependencies 2024-01-10 16:14:47 -03:00
Holger Brunn 43699a18ff [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
2024-01-10 16:14:47 -03:00
Stefan Rijnhart 0f1237c45a [RFR] Explicit access rights so that tests can run
Fixes #505
2024-01-10 16:14:47 -03:00
Holger Brunn f6003feefa [ADD] migrate database_cleanup
[ADD] test purging modules

[ADD] test purging tables
2024-01-10 16:14:47 -03:00