From a1da9eec41869d3df34d38e4ae189bbbe29db480 Mon Sep 17 00:00:00 2001 From: Nicolas Lempereur Date: Wed, 20 Dec 2017 12:01:24 +0100 Subject: [PATCH] [FIX] payment: reload on kanban acquirer install When installing a payment acquirer from the kanban view, this would by luck display the form view correctly. But if we go back to the listing then forward to the form view, things go awry. This is because the listing action views have not been updated after the module installed, this worked at install because we loaded a new action. This commit change the action so when installing a payment acquirer from the kanban view, the view is simply reloaded. opw-786454 closes #21757 --- addons/payment/models/payment_acquirer.py | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) diff --git a/addons/payment/models/payment_acquirer.py b/addons/payment/models/payment_acquirer.py index 68463b359d1..15ea2e07542 100644 --- a/addons/payment/models/payment_acquirer.py +++ b/addons/payment/models/payment_acquirer.py @@ -416,14 +416,9 @@ class PaymentAcquirer(models.Model): # TDE FIXME: remove that brol if self.module_id and self.module_state != 'installed': self.module_id.button_immediate_install() - context = dict(self._context, active_id=self.ids[0]) return { - 'view_type': 'form', - 'view_mode': 'form', - 'res_model': 'payment.acquirer', - 'type': 'ir.actions.act_window', - 'res_id': self.ids[0], - 'context': context, + 'type': 'ir.actions.client', + 'tag': 'reload', } class PaymentIcon(models.Model):