From b5d142e08a7ffbb4e83d7371abf6c8df49ac0001 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Thibault=20Delavall=C3=A9e?= Date: Mon, 18 Nov 2013 17:11:02 +0100 Subject: [PATCH] =?UTF-8?q?[IMP]=20payment=5Facquirer,=20paypal,=20ogone:?= =?UTF-8?q?=20improved=20back-end=20form=20views=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit bzr revid: tde@openerp.com-20131118161102-4kw3xewd1czbyrdb --- addons/payment_acquirer/__openerp__.py | 23 +---------- .../models/payment_acquirer.py | 3 +- .../views/payment_acquirer.xml | 15 ++++--- addons/payment_acquirer_ogone/__openerp__.py | 22 +--------- addons/payment_acquirer_ogone/models/ogone.py | 2 +- .../views/payment_acquirer.xml | 41 +++++++++++++++++++ addons/payment_acquirer_paypal/__openerp__.py | 22 +--------- .../views/payment_acquirer.xml | 40 ++++++++++++++++++ 8 files changed, 99 insertions(+), 69 deletions(-) create mode 100644 addons/payment_acquirer_ogone/views/payment_acquirer.xml create mode 100644 addons/payment_acquirer_paypal/views/payment_acquirer.xml diff --git a/addons/payment_acquirer/__openerp__.py b/addons/payment_acquirer/__openerp__.py index 66cefcd128c..4102c4fe276 100644 --- a/addons/payment_acquirer/__openerp__.py +++ b/addons/payment_acquirer/__openerp__.py @@ -1,32 +1,13 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2013-Today OpenERP SA (). -# -# 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 . -# -############################################################################## { 'name': 'Payment Acquirer', 'category': 'Hidden', 'summary': 'Payment Acquirer Base Module', - 'version': '0.1', + 'version': '1.0', 'description': """Payment Acquirer Base Module""", 'author': 'OpenERP SA', - 'depends': ['decimal_precision', 'mail'], + 'depends': ['mail'], 'data': [ 'views/payment_acquirer.xml', 'security/ir.model.access.csv', diff --git a/addons/payment_acquirer/models/payment_acquirer.py b/addons/payment_acquirer/models/payment_acquirer.py index f7ad17b14c0..811b2dec04b 100644 --- a/addons/payment_acquirer/models/payment_acquirer.py +++ b/addons/payment_acquirer/models/payment_acquirer.py @@ -32,7 +32,7 @@ class ValidationError(ValueError): class PaymentAcquirer(osv.Model): _name = 'payment.acquirer' - _description = 'Online Payment Acquirer' + _description = 'Payment Acquirer' _columns = { 'name': fields.char('Name', required=True), @@ -133,6 +133,7 @@ class PaymentAcquirer(osv.Model): class PaymentTransaction(osv.Model): _name = 'payment.transaction' + _description = 'Payment Transaction' _inherit = ['mail.thread'] _order = 'id desc' diff --git a/addons/payment_acquirer/views/payment_acquirer.xml b/addons/payment_acquirer/views/payment_acquirer.xml index 61b8711b675..c27ae138f63 100644 --- a/addons/payment_acquirer/views/payment_acquirer.xml +++ b/addons/payment_acquirer/views/payment_acquirer.xml @@ -8,10 +8,11 @@ parent='base.menu_administration'/> + acquirer.form payment.acquirer
- + @@ -60,7 +61,7 @@ - + Payment Acquirers payment.acquirer form @@ -73,7 +74,7 @@ parent='root_payment_menu' sequence='10' /> - + payment.transaction @@ -96,6 +97,8 @@ + +
@@ -105,7 +108,7 @@ - + payment.transaction @@ -119,7 +122,7 @@ - + payment.transaction @@ -131,7 +134,7 @@ - + Payment Transactions payment.transaction form diff --git a/addons/payment_acquirer_ogone/__openerp__.py b/addons/payment_acquirer_ogone/__openerp__.py index b04e29496a9..2c7b5076981 100644 --- a/addons/payment_acquirer_ogone/__openerp__.py +++ b/addons/payment_acquirer_ogone/__openerp__.py @@ -1,34 +1,16 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2013-Today OpenERP SA (). -# -# 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 . -# -############################################################################## { 'name': 'Ogone Payment Acquirer', 'category': 'Hidden', 'summary': 'Payment Acquirer: Ogone Implementation', - 'version': '0.1', + 'version': '1.0', 'description': """Ogone Payment Acquirer""", 'author': 'OpenERP SA', 'depends': ['payment_acquirer'], 'data': [ 'views/ogone.xml', + 'views/payment_acquirer.xml', 'data/ogone.xml', ], 'installable': True, diff --git a/addons/payment_acquirer_ogone/models/ogone.py b/addons/payment_acquirer_ogone/models/ogone.py index 08f898c64cc..eae4b4ae1ec 100644 --- a/addons/payment_acquirer_ogone/models/ogone.py +++ b/addons/payment_acquirer_ogone/models/ogone.py @@ -161,7 +161,7 @@ class PaymentTxOgone(osv.Model): 'ogone_feedback_model': fields.char(), 'ogone_feedback_eval': fields.char(), 'ogone_complus': fields.char('Complus'), - 'ogone_payid': fields.char() + 'ogone_payid': fields.char('PayID', help='Payment ID, generated by Ogone') } # -------------------------------------------------- diff --git a/addons/payment_acquirer_ogone/views/payment_acquirer.xml b/addons/payment_acquirer_ogone/views/payment_acquirer.xml new file mode 100644 index 00000000000..8ec958a5351 --- /dev/null +++ b/addons/payment_acquirer_ogone/views/payment_acquirer.xml @@ -0,0 +1,41 @@ + + + + + + acquirer.form.ogone + payment.acquirer + + + + + + + + + + + + + + + + acquirer.transaction.form.ogone + payment.transaction + + + + + + + + + + + + + + + diff --git a/addons/payment_acquirer_paypal/__openerp__.py b/addons/payment_acquirer_paypal/__openerp__.py index a3193bdb105..d7ba75d0a7b 100644 --- a/addons/payment_acquirer_paypal/__openerp__.py +++ b/addons/payment_acquirer_paypal/__openerp__.py @@ -1,34 +1,16 @@ # -*- coding: utf-8 -*- -############################################################################## -# -# OpenERP, Open Source Management Solution -# Copyright (C) 2013-Today OpenERP SA (). -# -# 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 . -# -############################################################################## { 'name': 'Paypal Payment Acquirer', 'category': 'Hidden', 'summary': 'Payment Acquirer: Paypal Implementation', - 'version': '0.1', + 'version': '1.0', 'description': """Paypal Payment Acquirer""", 'author': 'OpenERP SA', 'depends': ['payment_acquirer'], 'data': [ 'views/paypal.xml', + 'views/payment_acquirer.xml', 'data/paypal.xml', ], 'installable': True, diff --git a/addons/payment_acquirer_paypal/views/payment_acquirer.xml b/addons/payment_acquirer_paypal/views/payment_acquirer.xml new file mode 100644 index 00000000000..ae89253545c --- /dev/null +++ b/addons/payment_acquirer_paypal/views/payment_acquirer.xml @@ -0,0 +1,40 @@ + + + + + + acquirer.form.paypal + payment.acquirer + + + + + + + + + + + + + + + + acquirer.transaction.form.paypal + payment.transaction + + + + + + + + + + + + + + +