Odoo Help

Welcome!

This community is for beginners and experts willing to share their Odoo knowledge. It's not a forum to discuss ideas, but a knowledge base of questions and their answers.

1

Paypal enable causes Error 500 cart

By
Stephan Bleh
on 8/10/16, 11:49 AM 258 views

Hi

When I enable Paypal payment for webshop, the customer gets an 500 Error. I don't know, which files I have to check.

That's the error in the logfile:


2016-08-10 15:42:51,888 8561 ERROR server openerp.addons.website.models.ir_http: 500 Internal Server Error:

Traceback (most recent call last):

File "/usr/lib/python2.7/site-packages/openerp/addons/website/models/ir_http.py", line 243, in _handle_exception

response = super(ir_http, self)._handle_exception(exception)

File "/usr/lib/python2.7/site-packages/openerp/addons/base/ir/ir_http.py", line 157, in _handle_exception

return request._handle_exception(exception)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 784, in _handle_exception

return super(HttpRequest, self)._handle_exception(exception)

File "/usr/lib/python2.7/site-packages/openerp/addons/base/ir/ir_http.py", line 182, in _dispatch

result = request.dispatch()

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 843, in dispatch

r = self._call_function(**self.params)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 319, in _call_function

return checked_call(self.db, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/service/model.py", line 118, in wrapper

return f(dbname, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 312, in checked_call

result = self.endpoint(*a, **kw)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 962, in __call__

return self.method(*args, **kw)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 512, in response_wrap

response = f(*args, **kw)

File "/usr/lib/python2.7/site-packages/openerp/addons/website_sale_delivery/controllers/main.py", line 22, in payment

res = super(website_sale, self).payment(**post)

File "/usr/lib/python2.7/site-packages/openerp/http.py", line 512, in response_wrap

response = f(*args, **kw)

File "/usr/lib/python2.7/site-packages/openerp/addons/website_sale/controllers/main.py", line 791, in payment

context=render_ctx)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/addons/payment/models/payment_acquirer.py", line 275, in render

return self.pool['ir.ui.view'].render(cr, uid, acquirer.view_template_id.xml_id, values, engine='ir.qweb', context=context)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/addons/website/models/ir_ui_view.py", line 160, in render

view_obj = request.website.get_template(id_or_xml_id)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 248, in wrapper

return new_api(self, *args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 574, in new_api

result = method(self._model, cr, uid, self.ids, *args, **old_kwargs)

File "/usr/lib/python2.7/site-packages/openerp/addons/website/models/website.py", line 410, in get_template

view_id = View.get_view_id(cr, uid, template, context=context)

File "/usr/lib/python2.7/site-packages/openerp/api.py", line 250, in wrapper

return old_api(self, *args, **kwargs)

File "<string>", line 2, in get_view_id

File "/usr/lib/python2.7/site-packages/openerp/tools/cache.py", line 85, in lookup

value = d[key] = self.method(*args, **kwargs)

File "/usr/lib/python2.7/site-packages/openerp/addons/website/models/ir_ui_view.py", line 134, in get_view_id

raise ValueError('View %r in website %r not found' % (xml_id, context['website_id']))

ValueError: View u'website.' in website 1 not found


Any Ideas?

0
Stephan Bleh
On 8/25/16, 11:36 PM

I solved the problem in this way:

- Disabled paypal on the webpage

- deinstall paypal payment app

- enable debug mode

- open settings, technical, user-interface, views

- search "paypal"

- open qweb-view paypal_acquirer_button and disable it

- install paypal app (a new view will be installed with the same name)

- open financial, payment aquir., paypal, configuration

- reselect the view paypal_acquirer_button

- save


That's it


I wasn't able to delete the view (there should be an existing link somewhere), so I had to disable it.

\

0
samuel njoroge
On 8/25/16, 9:28 PM

I have this exact issue. How do I create a xml id?

0

Jérémy Kersten (jke)

--Jérémy Kersten (jke)--
2983
| 3 2 5
Jodoigne, Belgium
--Jérémy Kersten (jke)--

Jérémy is a member of the core R&D team since september 2013. He developed several projects for OpenERP version 8 including the eCommerce, the Google Calendar synchronization and the new product variants/configurator. Now, he manages Odoo website and themes for saas.

Jérémy Kersten (jke)
On 8/10/16, 4:45 PM

you can just create a xml id and it should works...

Eg: exporting this view, or creating an ir_model_data manually

But it should be improved, I will let a comment to the usability team.

Thanks for the reporting

How can I do that? I'm just an engineer, not a programmer... ;-)

Stephan Bleh
on 8/11/16, 5:21 AM

Your Answer

Please try to give a substantial answer. If you wanted to comment on the question or answer, just use the commenting tool. Please remember that you can always revise your answers - no need to answer the same question twice. Also, please don't forget to vote - it really helps to select the best questions and answers!

About This Community

This community is for professionals and enthusiasts of our products and services. Read Guidelines

Question tools

1 follower(s)

Stats

Asked: 8/10/16, 11:49 AM
Seen: 258 times
Last updated: 8/28/16, 11:19 PM