diff options
| author | Nicolas Lempereur <nle@odoo.com> | 2017-12-20 12:01:24 +0100 |
|---|---|---|
| committer | Nicolas Lempereur <nle@odoo.com> | 2017-12-20 14:14:43 +0100 |
| commit | a1da9eec41869d3df34d38e4ae189bbbe29db480 (patch) | |
| tree | 24fb60bc6e61e09aa1670472b885efc4e2c5e707 /addons/payment/models | |
| parent | 0322f6e51f41f92b3531942b0923dfe74cfcd26a (diff) | |
[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
Diffstat (limited to 'addons/payment/models')
| -rw-r--r-- | addons/payment/models/payment_acquirer.py | 9 |
1 files 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): |
