Miika Nissi
0d2fbc3ec1
[IMP] database_cleanup: Unlink with new cursor
...
Needed for purging payment providers which recompute module_state
2023-12-28 18:00:16 -05:00
Miika Nissi
8d364c3afc
[IMP] database_cleanup: Readability of modules to remove
2023-12-28 17:59:30 -05: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
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
Ruchir Shukla
9636bdb2a9
[FIX][ #1580 ]database_cleanup: Skip studio_customization module skipped for uninstalling
2023-10-30 13:35:29 -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
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
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
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
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