[IMP] payment: use ondelete instead of custom error

Use generic method on_delete instead of personalized one for the sake of
clarity and reproductibility.

task-2883630

closes odoo/odoo#99958

Signed-off-by: Antoine Vandevenne (anv) <anv@odoo.com>
This commit is contained in:
Valentin Vallaeys (vava)
2022-09-16 19:17:05 +02:00
parent af320bad34
commit efbf0c0838
3 changed files with 6 additions and 19 deletions
-1
View File
@@ -1,7 +1,6 @@
# Part of Odoo. See LICENSE file for full copyright and licensing details.
from . import ir_http
from . import ir_ui_view
from . import payment_provider
from . import payment_icon
from . import payment_token