flectra/addons/website_payment/models/payment.py

11 lines
453 B
Python
Raw Normal View History

# Part of Flectra. See LICENSE file for full copyright and licensing details.
from flectra import fields, models
class PaymentAcquirer(models.Model):
_inherit = "payment.acquirer"
website_id = fields.Many2one('website', string='Website', copy=False,
default=lambda self: self.env.ref('website.default_website'),
help='Define website in which Payment Gateway will published.')