[FIX] payment: allow creating new payment methods from the provider

When browsing a payment provider's payment methods, the "New" button was
disabled because the action did not allow Kanban views.

closes odoo/odoo#148865

Signed-off-by: Valentin Chevalier <vcr@odoo.com>
This commit is contained in:
Antoine Vandevenne (anv)
2024-01-10 21:04:35 +00:00
parent ec6cc3511a
commit 2c79995c29
+1 -1
View File
@@ -452,7 +452,7 @@ class PaymentProvider(models.Model):
'type': 'ir.actions.act_window',
'name': _("Payment Methods"),
'res_model': 'payment.method',
'view_mode': 'tree',
'view_mode': 'tree,kanban,form',
'domain': [('id', 'in', self.with_context(active_test=False).payment_method_ids.ids)],
'context': {'active_test': False},
}