akretion/payment-gateway

View on GitHub
payment_gateway_paypal/models/keychain.py

Summary

Maintainability
A
2 hrs
Test Coverage
# -*- coding: utf-8 -*-
# Copyright 2017 Akretion (http://www.akretion.com).
# @author Sébastien BEAU <sebastien.beau@akretion.com>
# License AGPL-3.0 or later (http://www.gnu.org/licenses/agpl).

from openerp import fields, models


class KeychainAccount(models.Model):
    _inherit = 'keychain.account'

    namespace = fields.Selection(
        selection_add=[('paypal', 'Paypal')])

    def _paypal_init_data(self):
        return {}

    def _paypal_validate_data(self, data):
        return True