Skip to Content
Menu
This question has been flagged
3 Replies
5465 Views

hi,

if i buy something from e-commerce it give me Internal Server Error payment/transfer/feedback, i try with a generic payment and wire transfer.

this is the website http://188.213.166.234:8069

in my log there is this:

Traceback (most recent call last):

File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 180, in run_wsgi

execute(self.server.app)

File "/usr/lib/python3/dist-packages/werkzeug/serving.py", line 168, in execute

application_iter = app(environ, start_response)

File "/usr/lib/python3/dist-packages/odoo/service/server.py", line 252, in app

return self.app(e, s)

File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 166, in application

return application_unproxied(environ, start_response)

File "/usr/lib/python3/dist-packages/odoo/service/wsgi_server.py", line 154, in application_unproxied

result = handler(environ, start_response)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 1298, in __call__

return self.dispatch(environ, start_response)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 1272, in __call__

return self.app(environ, start_wrapped)

File "/usr/lib/python3/dist-packages/werkzeug/wsgi.py", line 591, in __call__

return self.app(environ, start_response)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 1462, in dispatch

result = ir_http._dispatch()

File "/usr/lib/python3/dist-packages/odoo/addons/website_sale/models/ir_http.py", line 15, in _dispatch

return super(IrHttp, cls)._dispatch()

File "/usr/lib/python3/dist-packages/odoo/addons/auth_signup/models/ir_http.py", line 19, in _dispatch

    return super(Http, cls)._dispatch()

File "/usr/lib/python3/dist-packages/odoo/addons/web_editor/models/ir_http.py", line 21, in _dispatch

return super(IrHttp, cls)._dispatch()

File "/usr/lib/python3/dist-packages/odoo/addons/http_routing/models/ir_http.py", line 391, in _dispatch

result = super(IrHttp, cls)._dispatch()

File "/usr/lib/python3/dist-packages/odoo/addons/utm/models/ir_http.py", line 20, in _dispatch

response = super(IrHttp, cls)._dispatch()

File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_http.py", line 212, in _dispatch

return cls._handle_exception(e)

File "/usr/lib/python3/dist-packages/odoo/addons/website/models/ir_http.py", line 164, in _handle_exception

return super(Http, cls)._handle_exception(exception)

File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_http.py", line 182, in _handle_exception

return request._handle_exception(exception)

File "/usr/lib/python3/dist-packages/odoo/http.py", line 761, in _handle_exception

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

File "/usr/lib/python3/dist-packages/odoo/http.py", line 307, in _handle_exception

raise pycompat.reraise(type(exception), exception, sys.exc_info()[2])

File "/usr/lib/python3/dist-packages/odoo/tools/pycompat.py", line 87, in reraise

raise value

File "/usr/lib/python3/dist-packages/odoo/addons/base/ir/ir_http.py", line 208, in _dispatch

result = request.dispatch()

File "/usr/lib/python3/dist-packages/odoo/http.py", line 820, in dispatch

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

File "/usr/lib/python3/dist-packages/odoo/http.py", line 339, in _call_function

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

File "/usr/lib/python3/dist-packages/odoo/service/model.py", line 97, in wrapper

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

File "/usr/lib/python3/dist-packages/odoo/http.py", line 332, in checked_call

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

File "/usr/lib/python3/dist-packages/odoo/http.py", line 927, in __call__

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

File "/usr/lib/python3/dist-packages/odoo/http.py", line 512, in response_wrap

response = f(*args, **kw)

File "/usr/lib/python3/dist-packages/odoo/addons/payment_transfer/controllers/main.py", line 20, in transfer_form_feedback

request.env['payment.transaction'].sudo().form_feedback(post, 'transfer')

File "/usr/lib/python3/dist-packages/odoo/addons/sale_payment/models/payment.py", line 33, in form_feedback

tx._confirm_so()

File "/usr/lib/python3/dist-packages/odoo/addons/sale_payment/models/payment.py", line 75, in _confirm_so

self.sale_order_id.force_quotation_send()

File "/usr/lib/python3/dist-packages/odoo/addons/sale/models/sale.py", line 506, in force_quotation_send

order.with_context(email_ctx).message_post_with_template(email_ctx.get('default_template_id'))

File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_thread.py", line 1969, in message_post_with_template

update_values = composer.onchange_template_id(template_id, kwargs['composition_mode'], self._name, res_id)['value']

File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 365, in onchange_template_id

values = self.generate_email_for_composer(template_id, [res_id])[res_id]

File "/usr/lib/python3/dist-packages/odoo/addons/mail/wizard/mail_compose_message.py", line 500, in generate_email_for_composer

template_values = self.env['mail.template'].with_context(tpl_partners_only=True).browse(template_id).generate_email(res_ids, fields=fields)

  template_values = self.env['mail.template'].with_context(tpl_partners_only=True).browse(template_id).generate_email(res_ids, fields=fields)

File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 481, in generate_email

results = template.generate_recipients(results, template_res_ids)

File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 434, in generate_recipients

tpl_partner_ids = [int(pid) for pid in partner_to.split(',') if pid]

File "/usr/lib/python3/dist-packages/odoo/addons/mail/models/mail_template.py", line 434, in <listcomp>

tpl_partner_ids = [int(pid) for pid in partner_to.split(',') if pid]

ValueError: invalid literal for int() with base 10: 'info@stanem.it'

2018-03-08 17:57:59,189 1158 INFO STANEM werkzeug: 93.36.163.204 - - [08/Mar/2018 17:57:59] "GET /favicon.ico HTTP/1.1" 200 -

2018-03-08 17:58:18,003 1158 INFO STANEM odoo.addons.base.ir.ir_cron: Starting job `Mail: Email Queue Manager`.

2018-03-08 17:58:33,327 1158 INFO STANEM werkzeug: 93.36.163.204 - - [08/Mar/2018 17:58:33] "POST /longpolling/poll HTTP/1.1" 200 -


please anyone can help me?

Avatar
Discard
Author Best Answer

Hi,

i've found solution. I added fix mail to "partners" in technical-template "sales order send by mail"

it was enough to remove it and everything was settled. Thank you so much because your little help has allowed me to find the solution

Avatar
Discard
Best Answer

problem is there may be because of the changes you have made?

tpl_partner_ids = [int(pid) for pid in partner_to.split(',') if pid]

ValueError: invalid literal for int() with base 10: 'info@stanem.it'

Avatar
Discard
Author

i've made little changes, there is a way to understand what I have to put in place?