summaryrefslogtreecommitdiff
path: root/addons
diff options
context:
space:
mode:
authorNicolas Lempereur <nle@odoo.com>2020-04-06 10:51:00 +0000
committerNicolas Lempereur <nle@odoo.com>2020-04-06 13:26:23 +0000
commit844a4cb49bfc12e5c22d327aa6f1b064c64c93e8 (patch)
tree5c3da0411ea44a4d46a2bc4121993d779056c738 /addons
parente1f9648021039a2fc9b724c6562b9675e0f25059 (diff)
[FIX] payment: payment acquirer disabled on uninstall
When we uninstall a payment acquirer, its state should be `disabled` because when we succedingly reinstall it, we want the required_if_provider fields to possibly be unset (which is only possible if the state is not in `enabled` or `test`). opw-2223094 closes #49033 closes odoo/odoo#49061 X-original-commit: ddf07ef2d9741d1db546efb1364718ff9e247aaf Signed-off-by: Nicolas Lempereur (nle) <nle@odoo.com>
Diffstat (limited to 'addons')
-rw-r--r--addons/payment/__init__.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/addons/payment/__init__.py b/addons/payment/__init__.py
index 95d9fb1ca40..946d0a4ab5c 100644
--- a/addons/payment/__init__.py
+++ b/addons/payment/__init__.py
@@ -13,4 +13,5 @@ def reset_payment_provider(cr, registry, provider):
acquirers.write({
'view_template_id': acquirers._get_default_view_template_id().id,
'provider': 'manual',
+ 'state': 'disabled',
})