[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:
@@ -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},
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user