From 169637cdf5306653fb53cb4c46994f9e45a3137b Mon Sep 17 00:00:00 2001 From: sheetalPatil Date: Mon, 9 Jul 2018 19:09:00 +0530 Subject: [PATCH] [ADD]:Added Upstream patch for payment_ogone --- addons/payment_ogone/__init__.py | 1 + addons/payment_ogone/__manifest__.py | 1 + addons/payment_ogone/controllers/main.py | 2 +- 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/addons/payment_ogone/__init__.py b/addons/payment_ogone/__init__.py index 81ea421d..96f1329b 100644 --- a/addons/payment_ogone/__init__.py +++ b/addons/payment_ogone/__init__.py @@ -3,3 +3,4 @@ from . import models from . import controllers +from flectra.addons.payment.models.payment_acquirer import create_missing_journal_for_acquirers diff --git a/addons/payment_ogone/__manifest__.py b/addons/payment_ogone/__manifest__.py index 707ad02e..3e40251d 100644 --- a/addons/payment_ogone/__manifest__.py +++ b/addons/payment_ogone/__manifest__.py @@ -14,4 +14,5 @@ 'data/payment_acquirer_data.xml', ], 'installable': True, + 'post_init_hook': 'create_missing_journal_for_acquirers', } diff --git a/addons/payment_ogone/controllers/main.py b/addons/payment_ogone/controllers/main.py index b907dbb5..5edeeb36 100644 --- a/addons/payment_ogone/controllers/main.py +++ b/addons/payment_ogone/controllers/main.py @@ -110,7 +110,7 @@ class OgoneController(http.Controller): def feedback(self, **kwargs): try: tx = request.env['payment.transaction'].sudo()._ogone_form_get_tx_from_data(kwargs) - tx._ogone_s2s_validate() + tx._ogone_s2s_validate_tree(kwargs) except ValidationError: return 'ko' return 'ok'