(optionnal and desactivate by defaut) Add all acquirers published in the automatic footer
10 lines
237 B
Python
10 lines
237 B
Python
from openerp import api, models
|
|
|
|
|
|
class Website(models.Model):
|
|
_inherit = "website"
|
|
|
|
@api.model
|
|
def payment_acquirers(self):
|
|
return list(self.env['payment.acquirer'].sudo().search([('website_published', '=', True)]))
|