{"action":"created","issue":{"url":"https://api.github.com/repos/laslabs/odoo-payment/issues/1","repository_url":"https://api.github.com/repos/laslabs/odoo-payment","labels_url":"https://api.github.com/repos/laslabs/odoo-payment/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/laslabs/odoo-payment/issues/1/comments","events_url":"https://api.github.com/repos/laslabs/odoo-payment/issues/1/events","html_url":"https://github.com/laslabs/odoo-payment/issues/1","id":157296802,"number":1,"title":"[8.0] Exception not being caught","user":{"login":"stephen144","id":1251359,"avatar_url":"https://avatars.githubusercontent.com/u/1251359?v=3","gravatar_id":"","url":"https://api.github.com/users/stephen144","html_url":"https://github.com/stephen144","followers_url":"https://api.github.com/users/stephen144/followers","following_url":"https://api.github.com/users/stephen144/following{/other_user}","gists_url":"https://api.github.com/users/stephen144/gists{/gist_id}","starred_url":"https://api.github.com/users/stephen144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephen144/subscriptions","organizations_url":"https://api.github.com/users/stephen144/orgs","repos_url":"https://api.github.com/users/stephen144/repos","events_url":"https://api.github.com/users/stephen144/events{/privacy}","received_events_url":"https://api.github.com/users/stephen144/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/laslabs/odoo-payment/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2016-05-27T21:50:37Z","updated_at":"2016-06-06T21:45:46Z","closed_at":null,"body":"I'm not sure how this is possible, but the exception in payment_authorize_auto_reconcile/models/payment_transaction.py is not getting caught.\r\n\r\n```python\r\n    @api.model\r\n    def _authorize_form_get_tx_from_data(self, data):\r\n        \"\"\" Overload original method to create transaction if none exists \"\"\"\r\n\r\n        try:\r\n            return super(PaymentTransaction, self).\\\r\n                _authorize_form_get_tx_from_data(data)\r\n        except ValidationError as original_error:\r\n            pass\r\n```\r\n\r\nThis is the error:\r\n\r\n2016-05-27 20:56:47,959 31583 ERROR odoostage werkzeug: Error on request:\r\nTraceback (most recent call last):\r\n  File \"/datadrive/odoo/stage/stage-venv/lib/python2.7/site-packages/werkzeug/serving.py\", line 193, in run_wsgi\r\n    execute(self.server.app)\r\n  File \"/datadrive/odoo/stage/stage-venv/lib/python2.7/site-packages/werkzeug/serving.py\", line 181, in execute\r\n    application_iter = app(environ, start_response)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/service/wsgi_server.py\", line 214, in application\r\n    return werkzeug.contrib.fixers.ProxyFix(application_unproxied)(environ, start_response)\r\n  File \"/datadrive/odoo/stage/stage-venv/lib/python2.7/site-packages/werkzeug/contrib/fixers.py\", line 152, in __call__\r\n    return self.app(environ, start_response)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/service/wsgi_server.py\", line 202, in application_unproxied\r\n    result = handler(environ, start_response)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/http.py\", line 1293, in __call__\r\n    return self.dispatch(environ, start_response)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/http.py\", line 1267, in __call__\r\n    return self.app(environ, start_wrapped)\r\n  File \"/datadrive/odoo/stage/stage-venv/lib/python2.7/site-packages/werkzeug/wsgi.py\", line 599, in __call__\r\n    return self.app(environ, start_response)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/http.py\", line 1440, in dispatch\r\n    result = ir_http._dispatch()\r\n  File \"/datadrive/odoo/stage/odoo/openerp/addons/base/ir/ir_http.py\", line 175, in _dispatch\r\n    return self._handle_exception(e)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/addons/base/ir/ir_http.py\", line 145, in _handle_exception\r\n    return request._handle_exception(exception)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/http.py\", line 669, in _handle_exception\r\n    return super(HttpRequest, self)._handle_exception(exception)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/addons/base/ir/ir_http.py\", line 171, in _dispatch\r\n    result = request.dispatch()\r\n  File \"/datadrive/odoo/stage/odoo/openerp/http.py\", line 687, in dispatch\r\n    r = self._call_function(**self.params)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/http.py\", line 313, in _call_function\r\n    return checked_call(self.db, *args, **kwargs)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/service/model.py\", line 118, in wrapper\r\n    return f(dbname, *args, **kwargs)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/http.py\", line 310, in checked_call\r\n    return self.endpoint(*a, **kw)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/http.py\", line 806, in __call__\r\n    return self.method(*args, **kw)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/http.py\", line 406, in response_wrap\r\n    response = f(*args, **kw)\r\n  File \"/datadrive/odoo/stage/odoo/addons/payment_authorize/controllers/main.py\", line 24, in authorize_form_feedback\r\n    request.env['payment.transaction'].sudo().form_feedback(post, 'authorize')\r\n  File \"/datadrive/odoo/stage/odoo/openerp/api.py\", line 266, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/api.py\", line 508, in new_api\r\n    result = method(self._model, cr, uid, *args, **old_kwargs)\r\n  File \"/datadrive/odoo/stage/odoo/addons/payment/models/payment_acquirer.py\", line 475, in form_feedback\r\n    tx = getattr(self, tx_find_method_name)(cr, uid, data, context=context)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/api.py\", line 268, in wrapper\r\n    return old_api(self, *args, **kwargs)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/api.py\", line 372, in old_api\r\n    result = method(recs, *args, **kwargs)\r\n  File \"/datadrive/odoo/odoo-payment/payment_authorize_auto_reconcile/models/payment_transaction.py\", line 38, in _authorize_form_get_tx_from_data\r\n    _authorize_form_get_tx_from_data(data)\r\n  File \"/datadrive/odoo/stage/odoo/openerp/api.py\", line 266, in wrapper\r\n    return new_api(self, *args, **kwargs)\r\n  File \"/datadrive/odoo/stage/odoo/addons/payment_authorize/models/authorize.py\", line 115, in _authorize_form_get_tx_from_data\r\n    raise ValidationError(error_msg)\r\nValidationError: Authorize: received data for reference SO006; no order found"},"comment":{"url":"https://api.github.com/repos/laslabs/odoo-payment/issues/comments/224098368","html_url":"https://github.com/laslabs/odoo-payment/issues/1#issuecomment-224098368","issue_url":"https://api.github.com/repos/laslabs/odoo-payment/issues/1","id":224098368,"user":{"login":"stephen144","id":1251359,"avatar_url":"https://avatars.githubusercontent.com/u/1251359?v=3","gravatar_id":"","url":"https://api.github.com/users/stephen144","html_url":"https://github.com/stephen144","followers_url":"https://api.github.com/users/stephen144/followers","following_url":"https://api.github.com/users/stephen144/following{/other_user}","gists_url":"https://api.github.com/users/stephen144/gists{/gist_id}","starred_url":"https://api.github.com/users/stephen144/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stephen144/subscriptions","organizations_url":"https://api.github.com/users/stephen144/orgs","repos_url":"https://api.github.com/users/stephen144/repos","events_url":"https://api.github.com/users/stephen144/events{/privacy}","received_events_url":"https://api.github.com/users/stephen144/received_events","type":"User","site_admin":false},"created_at":"2016-06-06T21:45:46Z","updated_at":"2016-06-06T21:45:46Z","body":"No, SAJ is an invoice number. The error message will always say \"order\"."}}
{"actor":{"display_login":"stephen144"}}