|
|
|
@@ -0,0 +1,32 @@
|
|
|
|
|
# -*- coding: utf-8 -*-
|
|
|
|
|
##############################################################################
|
|
|
|
|
#
|
|
|
|
|
# OpenERP, Open Source Management Solution
|
|
|
|
|
# Copyright (C) 2013-Today OpenERP SA (<http://www.openerp.com>).
|
|
|
|
|
#
|
|
|
|
|
# This program is free software: you can redistribute it and/or modify
|
|
|
|
|
# it under the terms of the GNU Affero General Public License as
|
|
|
|
|
# published by the Free Software Foundation, either version 3 of the
|
|
|
|
|
# License, or (at your option) any later version.
|
|
|
|
|
#
|
|
|
|
|
# This program is distributed in the hope that it will be useful,
|
|
|
|
|
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
|
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
|
|
|
# GNU Affero General Public License for more details.
|
|
|
|
|
#
|
|
|
|
|
# You should have received a copy of the GNU Affero General Public License
|
|
|
|
|
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
|
|
|
#
|
|
|
|
|
##############################################################################
|
|
|
|
|
|
|
|
|
|
from openerp.addons.web import http
|
|
|
|
|
from openerp.addons.web.http import request
|
|
|
|
|
from openerp.addons.website.models import website
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class website_project(http.Controller):
|
|
|
|
|
|
|
|
|
|
@website.route(['/payment_acquirer/<path:acquirer>/'], type='http', auth="public")
|
|
|
|
|
def project(self, acquirer=None, **post):
|
|
|
|
|
obj = request.registry['payment.acquirer']
|
|
|
|
|
return obj.transaction_feedback(request.cr, request.uid, acquirer, context=request.context, **post)
|