[IMP] Added default website value in Payment Gateways!

As by-default every payment gateways/payment acquirer are selected/activate for default website.
This commit is contained in:
Siddharth Bhalgami 2018-03-07 16:59:40 +05:30
parent 7281768f82
commit 3e52008bb1

View File

@ -6,5 +6,5 @@ class PaymentAcquirer(models.Model):
_inherit = "payment.acquirer" _inherit = "payment.acquirer"
website_id = fields.Many2one('website', string='Website', copy=False, website_id = fields.Many2one('website', string='Website', copy=False,
help='Define website in which Payment ' default=lambda self: self.env.ref('website.default_website'),
'Gateway will published.') help='Define website in which Payment Gateway will published.')