3e52008bb1
As by-default every payment gateways/payment acquirer are selected/activate for default website.
11 lines
453 B
Python
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.')
|