[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
This commit is contained in:
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user