[ADD] payment_acquirer controllers

bzr revid: chm@openerp.com-20131018121123-or4sxzu1jdv5tjbd
This commit is contained in:
Christophe Matthieu
2013-10-18 14:11:23 +02:00
parent 0445188ff2
commit 367190fc82
3 changed files with 34 additions and 0 deletions
@@ -0,0 +1 @@
import main
@@ -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)
@@ -0,0 +1 @@
id,name,model_id:id,group_id:id,perm_read,perm_write,perm_create,perm_unlink
1 id name model_id:id group_id:id perm_read perm_write perm_create perm_unlink