Before this commit a constraint between the `ir_ui_view` and `payment_provider` view made impossible for providers to be uninstalled. After this commit the constraint is correctly treated. A similar issue is found on a constraint on the `payment_custom` module. To fix this and future possible problems we added the possibility to modify the way providers are uninstalled following each provider needs. Task - 3002532 closes odoo/odoo#102951 X-original-commit: 56318826b758f09782c8f67c05a7a46789cff47d Related: odoo/documentation#2802 Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>