summaryrefslogtreecommitdiff
path: root/addons/pos_adyen/models/res_config_settings.py
blob: 4e3b7102c944c2a0b7022fcdf37968c537df4ee8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# -*- coding: utf-8 -*-
# Part of Odoo. See LICENSE file for full copyright and licensing details.

from odoo import api, fields, models


class ResConfigSettings(models.TransientModel):
    _inherit = 'res.config.settings'

    adyen_account_id = fields.Many2one(string='Adyen Account', related='company_id.adyen_account_id')

    def create_adyen_account(self):
        return self.env['adyen.account'].action_create_redirect()