flectra/addons/website_payment/models/payment.py
Siddharth Bhalgami 3e52008bb1 [IMP] Added default website value in Payment Gateways!
As by-default every payment gateways/payment acquirer are selected/activate for default website.
2018-03-07 16:59:48 +05:30

11 lines
453 B
Python

# 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.')